Professional Documents
Culture Documents
CIS340-lab#3-part 2
CIS340-lab#3-part 2
DDL DML
DDL
Create
Alter Table Drop Table
Table
create table ( Rename Rename Add Modify Drop Drop Table Table's
Table column column Column Column name;
column1
datatype
constraients,
column2
Alter Table Table's_name Alter Table Table's_name Alter Table Table's_name
datatype Alter Table Table's_name
constraients, Rename Column Alter Table Table's_name
Rename to New_Table's_ Add Column's_name datatype Modify Column's_name
Column's_name To constraients ; datatype; Drop Column Coumn's_name;
...........); name; New_Column's_name
SQL
DML
Update Table's_name
Insert into Table's_name values Select column1,column2, ....
Set column = value Delete from Table's_name
(colunm1's value,colunm2's From Table's_name
value, ......) ; Where column=value; Where column=value;
Where column=value;
Example
Creating A table