![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/01/2010, 02:18
|
| | Fecha de Ingreso: noviembre-2002 Ubicación: DF
Mensajes: 1.056
Antigüedad: 22 años, 2 meses Puntos: 37 | |
Respuesta: consulta e inserta en bb si no se repite Quiza algo como
SELECT * FROM TABLAA where CAMPOA not in (Select CAMPOB from TABLAB)
(recupera registros de tablaA cuyo valor no este en la tabla B)
o bien
SELECT TABLAA.* FROM TABLAA left join TABLAB on campoA=campoB
(Debiera recuperar los registros que no "matchean" tablaA vs tablaB) |