SQL Statements Categories: DDL - Data Definition Language.: Create Alter Drop
SQL Statements Categories: DDL - Data Definition Language.: Create Alter Drop
DDL is used to define, alter, or drop database objects and their privileges. DDL statements will implicitly perform a commit.
DDL Statements:
Create Alter Drop Truncate It is used to create objects(tables, views) in the database. It is used to alter the structure of the database objects. delete database objects (It will invalidate the dependent objects ,it also drops indexes, triggers and referential integrity constraints ). remove all records from a table, including all spaces allocated for the records are removed (It is fast as compared to Delete and does not generate undo information as Delete does. It performs an implicit commit as it is a DDL. It resets the high water mark.) assigning privileges
Grant
DML Statements:
Select Insert Update Delete Select data from the database It is used to insert data into a table It is used to update existing data within a table It removes rows from the table.
DCL Statements:
Commit Savepoint It will end the current transaction making the changes permanent and visible to all users.. It will identify a point(named SAVEPOINT) in a transaction to which you can
later roll back Rollback SetTransaction It will undo all the changes made by the current transaction. It is used to define the properties of a transaction.