Subject | Re: [firebird-support] Re: Violation of UNIQUE KEY constraint during UPDATE |
---|---|
Author | Milan Babuskov |
Post date | 2005-08-05T15:25:08Z |
Adam wrote:
you have desc index) + pk search for each record.
--
Milan Babuskov
http://www.flamerobin.org
> for select id from tablea order by id desc into :id doIt would work, but it is more expensive: one full scan (or index walk if
> begin
> update tablea set id = id + 1 where id = :id;
> end
>
> The idea being to force the order by for the update. I do not know if
> this would work at all, but may be worth a try.
you have desc index) + pk search for each record.
--
Milan Babuskov
http://www.flamerobin.org