General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Insert from Other Table?
Looking to steal any ideas for this problem:
1. Have two tables with same structure in same DBC.
2. One table has had a lot of SQL-Inserts, the other one not.
3. Need to insert all of the values from the larger table to the smaller one, all within one SQL statement. Something like
insert into smalltable (*) values (select * from bigtable where candkey not in (select candkey from smalltable)
?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only