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

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -