-1
I have several tables with the same field versao
. I would like to delete simultaneously in all tables all records containing the field versao
with the same 'XYZ' value'.
I tried to
DELETE FROM `t1`, `t2`, `t3` WHERE `versao` = 'XYZ';
but it did not happen...
What am I doing wrong? From now on, thank you very much.
Tried to make three separate commands?
– Woss
Using https://dba.stackexchange.com/questions/4984/clear-all-tables-with-one-deletemetadata
– Motta
all I don’t want is to do more than one command.
– Walter Robynson
If you do not want to do several Deletes you can use forekeys and in the after delete Voce uses triggers and deletes the related tables, once done in the database you can use any front end that the bank will do the same
– Marcelo