
09/02/2016, 10:39
|
 | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 7 meses Puntos: 774 | |
Respuesta: eliminar filas de 2 BD
Código SQL:
Ver originalDELETE FROM tabla1 WHERE id IN( SELECT id FROM tabla1 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 |