sql - delete from table1,table2,table3 where? -


if tables want delete have column gamer_id

can delete table1, table2, table3 gamer_id = 123?

or there different syntax?

mysql supports multi-table deletes:

delete t1, t2, t3   table_1 t1   join table_2 t2 on t2.gamer_id = t1.gamer_id   join table_3 t3 on t3.gamer_id = t1.gamer_id  t1.gamer_id = 123 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -