Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Select From - Not All Columns 1

Status
Not open for further replies.

dja1

Programmer
Apr 24, 2002
65
GB
I would like to INSERT INTO TABLE_A SELECT * FROM TABLE_B, but, put fixed values into the first three columns of the destination table, as follows;
INSERT INTO TABLE_A
VALUES ("VAL1", "VAL2", "VAL3", ((Select X From TABLE_B))

Where "X" is the remaining columns from TABLE_B.

Obviously, this isn't the correct construct, it's just to give some idea of what I want to do.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top