I have a database with many tables, I simply want to delete all rows from any table that have a field of 'id_shop' with a value of '2' how can I do this with MySQL, without listing all of the table names in the query?
Thanks
I have a database with many tables, I simply want to delete all rows from any table that have a field of 'id_shop' with a value of '2' how can I do this with MySQL, without listing all of the table names in the query?
Thanks
This will work:
Delete a,b,c From tb1 a
Inner join tb2 b
On (a.id=b.id)
Inner join tb3 c
On (b.id=c.id)