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

copy record from one table to another (identical)

Status
Not open for further replies.

fgeorge

Programmer
Jun 28, 2002
76
NG
how can i copy a record with 15 fields from one table to another identical table withot having to do a LONNNGGG insert by passing 15 variables?
any way round this?
 
insert tableb select * from tablea (where condition(s) = true)

Dickie Bird (:)-)))
 
--creates the destination table
SELECT *
INTO table_new
FROM table_old


--if the table exists alreay
INSERT INTO table_new
SELECT *
FROM table_old
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top