all groups > sql server (alternate) > july 2003 >
You're in the

sql server (alternate)

group:

Copying a record from one table to another


Copying a record from one table to another Andrew Chalk
7/12/2003 12:30:07 AM
sql server (alternate): What is the easiest way to copy a record from one table to another (with
identical structure)?

Regards

Re: Copying a record from one table to another Ray Higdon
7/12/2003 12:57:35 AM
You mean into a new table? if so you can use select * into newtable from
oldtable (input your where statement)

To input into an existing table

insert into table1 select * from table2 (insert where statement)

HTH

Ray Higdon MCSE, MCDBA, CCNA

*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button