niche Posted September 15, 2011 Share Posted September 15, 2011 I need to move all the data from a source table to target table where the column names from the source match the column names I need to INSERT in the target. I'd use a query like this if I was going to specify column names: "INSERT INTO plan3 (cliorder, stknum) SELECT cliorder, stknum FROM preplan" How could I write this query to say move the source data to the target file when the column names match? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 15, 2011 Share Posted September 15, 2011 INSERT INTO plan3 SELECT * FROM preplan Link to comment Share on other sites More sharing options...
niche Posted September 16, 2011 Author Share Posted September 16, 2011 Thanks justsomeguy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.