DDL Commands
DDL Commands
DDL Commands
SCSE/VITCC
Components of SQL
Data Control Language (DCL) - These SQL commands are used for
providing security to database objects. These commands are
GRANT and REVOKE.
Create table command
CREATE TABLE table_name
( column1 datatype ,Column2 datatype , ...column n
data type);
Examples:
alter table student rename column branch to
course;
alter table student rename to students;
Drop & Truncate
sql>drop table table_name;
Sql>desc table_name
After dropping a table ,you have to create the
table once again as the schema will be lost.