Created
July 2, 2014 11:20
-
-
Save alexmoleiro/b9af2ad73e22cccfaf70 to your computer and use it in GitHub Desktop.
MySQL (5.5.x) deleting rows in two tables at the same time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE cesta_detalle,cdd | |
| FROM cesta_detalle,cesta_detalle_dominio AS cdd | |
| WHERE idcesta_detalle_parent=' loquesea ' | |
| AND cdd.idcesta_detalle_dominio=cesta_detalle.idcesta_detalle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment