1.

Which keyword is used to delete all the rows from the table?(a) TRUNCATE(b) REMOVE(c) DELETE ALL(d) CLEARThe question was posed to me in class test.I'm obligated to ask this question of Multiple in section Using SQL to Manage Data of MySQL

Answer»

The correct OPTION is (a) TRUNCATE

The best explanation: The ‘TRUNCATE’ keyword in MySQL is used to delete all the rows from the table and ALSO FREE the space containing the table. Its syntax is: TRUNCATE TABLE my_table. This deletes all rows from my_table.



Discussion

No Comment Found

Related InterviewSolutions