Subject | Re: [firebird-support] Command to duplicate a record in a table |
---|---|
Author | Anderson Farias |
Post date | 2009-08-27T01:16:44Z |
Hi,
insert into table
select :new_key, field2, field3, ... from table
where field1=:old_key;
But still needs to declare field list (same order as defined in the table).
At least you don't have to declare any variables.
Regards,
Anderson
> I am wondering if any similar statement or perhaps a trick to do the jobWell... you could do this:
> in stored procedure in Firebird?
insert into table
select :new_key, field2, field3, ... from table
where field1=:old_key;
But still needs to declare field list (same order as defined in the table).
At least you don't have to declare any variables.
Regards,
Anderson