Create Database 2. SP - Helpdb 3. SP - Renamedb, 4. Use
Create Database 2. SP - Helpdb 3. SP - Renamedb, 4. Use
Create: create command is used to create database, stored procedures, functions, views, triggers.
Example: create table tablename(columnname datatype)
Alter: Alter is used to modify the data in the table such as… Add data, Delete data, Rename data and
modifying datatype
Example: alter table <tablename> add <columname datatype>.
alter table drop column <columnname>
alter table <tablename> alter column <columnname datatype>
Truncate: Trunacte is used to remove data but it will not remove the structure of the table.
Example: truncate table <tablename>
Drop: by using this we can delete both data and structure of the data.
Example: drop table <tablename>
DATA MANIPULATION LANGUAGE COMMAND (DML)