Subject | Re: [firebird-support] how to use order by for selected record in insert |
---|---|
Author | Milan Babuskov |
Post date | 2008-02-11T09:26:51Z |
Mercea Paul wrote:
Insert into rpr_comp (ord, complete_descr)
?
get in the table anyway? Maybe you have some triggers on RPR_COMP table
and wish them to fire in the right order?
Anyway, the statement similar to the one you wrote works quite fine on
my system using FlameRobin (with or without stored procedure).
--
Milan Babuskov
http://www.flamerobin.org
> But I can't use :Shouldn't that be:
>
> Insert into rpr_comp (:newid, ord, complete_descr)
Insert into rpr_comp (ord, complete_descr)
?
> Select c2.ord, c2.complete_descrWhat sense does it make to ORDER the insert? All records are going to
> From rpr_comp ce
> Where c2.code = :oldid
> Order by c2.ord
get in the table anyway? Maybe you have some triggers on RPR_COMP table
and wish them to fire in the right order?
Anyway, the statement similar to the one you wrote works quite fine on
my system using FlameRobin (with or without stored procedure).
--
Milan Babuskov
http://www.flamerobin.org