27 08 2024
27 08 2024
-------------
Levels of DBMS:
------------------
01. Database
table
Columns
-----------------------------------------------------------------------------------
-----------------
Database:
------------
01. Create
02. Select
USE <db_name>;
03. Remove/Delete
04. Display/Show
SHOW DATABASES;
-----------------------------------------------------------------------------------
----
02. Tables
1. INT
SMALLINT
MEDIUMINT
BIGINT
b. Primary Key
product
id
name
price
units
expiry date
category
field_name data_type(size),
-------
);
DESC <TABLE_NAME>;
SHOW TABLES;
04. Delete/Remove
--------------------------------------------------------------------
Syntax:
----------
** Before inserting the data, first check the structure of the table
------------------------------------------------------
Syntax:
---------
-----------------------------------------------------------------------------------
-----------------
-----------------------------------------------------------------------------------
----------------