Junior — Middle
Which SQL command is used to delete records from a database table?
sobes.tech AI
Answer from AI
The DELETE command is used to remove records from a table in SQL.
Syntax:
DELETE FROM table_name WHERE condition;
For example, to delete all users under the age of 18:
DELETE FROM users WHERE age < 18;
If the WHERE condition is not specified, all records from the table will be deleted.