Which of the following commands can be used SQL to delete all the records in the table work ?
MH SET - 2024, SET Exam - 2024,
Answer: A
The command is Delete from work.
A DELETE statement without a WHERE clause removes every row from the table, while leaving the table and its structure in place.
Adding where Id = 'Null' deletes only rows whose Id is the string 'Null'. DROP TABLE removes the table itself, not just its records, and REMOVE TABLE is not an SQL command.
Please log in or register to report this question.