Professional Documents
Culture Documents
Experiment - 2 Aim:-Executing All DDL and DML Commands DML Command
Experiment - 2 Aim:-Executing All DDL and DML Commands DML Command
DDL COMMAND:
CREATE COMMAND:- Create command is used to create a table. We can
specify names and datatypes of various columns along.
ADD
Alter command can add a new column to an existing table.
TURNCATE COMMAND
Truncate command removes all records from a table . but this command will not destroy the
tables structure. When we apply truncate command on a table its primary key is initialized .
SYNTAX:Truncate table table-name.
DROP COMMAND
Drop query completly removes a table from database .this command will also destroy the
table structure.
SYNTAX:Drop table table-name;