List:General Discussion« Previous MessageNext Message »
From:Dan Sashko Date:September 10 2004 11:59pm
Subject:Copy a record
View as plain text  
hi, a quick question.

is there a way to duplicate a record (without knowing fields in advance) in
sql alone?
the only thing is know is that `id` is a primary key (autonumber)

something of this sort:

INSERT INTO the_table
SELECT * FROM the_table
WHERE id=the_number

this fails due duplicate entry for the primary key. Is there way to select *
minus the id field?

thx

Thread
Copy a recordDan Sashko11 Sep
  • Re: Copy a recordPaul DuBois11 Sep