DELETE
Removes rows from a table. Always use WHERE to avoid deleting all rows.
Syntax
sql
DELETE FROM table WHERE condition;Example
sql
DELETE FROM sessions
WHERE expires_at < NOW();Removes rows from a table. Always use WHERE to avoid deleting all rows.
DELETE FROM table WHERE condition;DELETE FROM sessions
WHERE expires_at < NOW();