Something along the lines of

INSERT INTO table2
SELECT table1 WHERE conditions

should do it

HTH,
Dave

-----Original Message-----
From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 17:40
To: CF-Talk
Subject: Duplicate record in another table with CF


I have 2 tables with the same structure, I need to duplicate (INSERT) a
record from table1 to table2 using CF.  Only way I know of would be to
SELECT * then write an INSERT that contained every field.  These tables have
almost 200 fields, is there some better method of doing this?

Thanks,Adrian

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to