The document discusses various aspects of database management systems (DBMS), focusing on MySQL and SQL commands. It covers topics such as data definition, manipulation, transaction control, and the structure of SQL statements, including commands for creating, altering, and deleting tables. Additionally, it explains the use of constraints, primary keys, foreign keys, and the differences between various SQL commands.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views18 pages
My SQL
The document discusses various aspects of database management systems (DBMS), focusing on MySQL and SQL commands. It covers topics such as data definition, manipulation, transaction control, and the structure of SQL statements, including commands for creating, altering, and deleting tables. Additionally, it explains the use of constraints, primary keys, foreign keys, and the differences between various SQL commands.
ADO PRIMARY KEY (Co\wrn sor
#48 to add PRIMARY KEY constraint on column ECODE of table EMPLOYER com
ALTER TABLE EMPLOYEE ADD PRIMARY KEY (BCOOP)
ALTER TABLE
ADD FOREIGN KEY (Column name) (HP tH ee. —
‘Table (Primary key of Parent Tal ,
REMOVING CONSTRAINTS
To remove primary key constraint from a table, we use ALTER TABLE commana
ALTER TABLE
DROP PRIMARY KEY ;
‘To remove foreign key constraint from a table, we use ALTER TABLE command as
ALTER TABLE