Professional Documents
Culture Documents
Notes 14 DDL, DML
Notes 14 DDL, DML
Notes 14 DDL, DML
CREATE
ALTER
DROP
TRUNCATE
are the commands of DDL
INSERT
UPDATE
DELETE
are the commands of DML
Truncate
--------------------------------------------------------------------------------
-While this command is used to delete all the rows from a table.
-While it is a DDL(Data Definition Language) command.
-While there may not be WHERE clause in the TRUNCATE command.
-While the TRUNCATE command is faster than the DELETE command.
class notes:::
===================================================================================
=======
CREATE table BJSHUBJUNE(id Number,name varchar2(5));
desc BJSHUBJUNE
---------------------------------------------------
Delete : It is also used to remove one or more rows from a table.
WAQ to delete all the rows from table course where the course is handled by
'Meenakshi'
-------------------------
Delete from Course?
ASSignment
-------------------------
DROP
------------------------
Truncate