Quantcast
Channel: AJAX Archives - Bugtreat Blog
Viewing all articles
Browse latest Browse all 8

Difference between MySql drop table, truncate table, delete from table commands

$
0
0
DROP command is used for deleting the table and its structure from the data base.Use this command when you don’t need that table any more. Other Spec: 1. Removes a table from the database.Table structures, indexes, privileges, constraints will also be removed. 2. Cannot be rolled back. 3. No Triggers can be fired. DELETE FROM tablename; DELETE command is used for deleting the records from the table, and it removing the table space which is allocated by the database, and returns number of rows deleted.Delete allows you to use a WHERE clause so you can delete specific records according to your requirement. Other Spec: 1. Can be rolled back, as during DELETE operation, all the data get copied into Rollback …

Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images