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

Copy records

Status
Not open for further replies.

ChewDoggie

Programmer
Mar 14, 2005
604
US
Hello,

I have a "results" table with the following fields:

eventid - KEY
racerid - KEY
racenum - KEY
amaclassid - KEY
classid - KEY
runclassid
racetype - KEY
fpos
runfpos
comp
DN
advflg

and it's filled with records for eventid "8". I want to copy all of eventid "8" to eventid "7", but eventid "7" does not yet exist in the table.

How do I do this?

Thanks!



AMACycle

American Motorcyclist Association
 
insert into table
select 7, col1, col2...
from table
where eventID = 8



--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top