![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/02/2018, 23:06
|
![Avatar de Libras](http://static.forosdelweb.com/customavatars/avatar147802_5.gif) | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 6 meses Puntos: 774 | |
Respuesta: duda en eliminar datos de una tabla usando otra con un left join,
Código SQL:
Ver originalDELETE FROM tabla AS t1 LEFT JOIN tabla2 AS t2 ON (t1.id=t2.id) WHERE t2.id IS NULL
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |