php - delete if record exits otherwise exit in MySQL -


i want delete record if exist , don't if record doesn't exist think delete query alone not sufficient. because database throws error if doesn't find record. using mysql doing :

delete tag exists(select * tag column='value') 

thanks in advance

delete tablename columnname =' '; asked for. if record exists delete else nothing happens.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -