Delete with Where clause

suggest change
DELETE FROM `table_name` WHERE `field_one` = 'value_one'

This deletes every row whose field_one equals value_one.

WHERE works as it does in SELECT. Comparisons such as >, <, <>, and LIKE belong inside WHERE.

Notice: Omit WHERE only when you mean to delete every row. LIKE is not a substitute for WHERE.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents