DELETE
DROP
TRUNCATE
commands ....?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Nov 10, 2013, 3:02 AM
synatx:- DELETE FROM employee WHERE id = 1;
The DROP command removes a table from the database. All the tables' rows, indexes and privileges will also be removed. No DML triggers will be fired. The operation cannot be rolled back.
synatx:-DROP TABLE employee ;
TRUNCATE removes all rows from a table. The operation cannot be rolled back
syntax:-TRUNCATE TABLE employee ;
One another difference is, DROP and TRUNCATE are DDL commands, whereas DELETE is a DML command