Home » MYSQL » Delete Query » Question
  1. Which keyword is used to delete all the rows from the table?
    1. DELETE ALL
    2. CLEAR
    3. TRUNCATE
    4. REMOVE
    5. None of these
Correct Option: C

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.



Your comments will be displayed only after manual approval.