Thread
:
Insert data from tableA into TableB if idA is not already in tableB?
View Single Post
#
2
(
permalink
)
05-24-2006, 12:00 AM
alexfr
Junior Member
Join Date: May 2006
Posts: 24
SQL 92
answer.
Re: Insert data from tableA into TableB if idA is not already in tableB?
[sql]INSERT INTO tableB (idB, nomB)
SELECT idA, nomA FROM tableA
WHERE NOT EXISTS (
SELECT idB FROM tableB
WHERE tableB.idB = tableA.idA
)[/sql]
alexfr
View Public Profile
Send a private message to alexfr
Find all posts by alexfr