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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INSERT INTO......SELECT

Status
Not open for further replies.

SweetDot

Technical User
Jan 19, 2004
65
US
Is there anyway to select a record from table A and insert it into table B without listing the field names? there are 30 fields, and it's such a pain to have to do that. I need to append to Table B, so I can't do select Into.....
Please help...

thanks
 
INSERT INTO tableB SELECT * FROM tableA WHERE........
 
genomon's solution will work as long as you want to insert all the fields from table a into table b (so the structure has to be the same).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top