Domanda

Se tutte le tabelle che voglio cancellare dalla abbiano colonna gamer_id

Posso fare una cancellazione da table1, tabella2, table3 dove gamer_id = 123?

o c'è una sintassi diversa?

È stato utile?

Soluzione

multi-tavolo elimina :

DELETE t1, t2, t3
  FROM 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
 WHERE t1.gamer_id = 123
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top