Delete with Where clause

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

This will delete all rows from the table where the contents of the field_one for that row match ‘value_one’

The WHERE clause works in the same way as a select, so things like \>, \<, <> or LIKE can be used.

Notice: It is necessary to use conditional clauses (WHERE, LIKE) in delete query. If you do not use any conditional clauses then all data from that table will be deleted.

Feedback about page:

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



Table Of Contents