Subject | Re: [firebird-support] DBKEY or cursor in PSQL |
---|---|
Author | Dmitry Yemanov |
Post date | 2008-12-05T07:35:59Z |
Helen Borrie wrote:
row as compared with the DBKEY based update.
FB versions :-)
The new PSQL cursor feature in v2 looks like an overkill for such a
simple operation, it's basically targeted to more complicated usage cases.
Dmitry
>True, although WHERE CURRENT OF saves you a couple of page fetches per
> Actually, the cursor syntax uses the rdb$db_key to determine WHERE CURRENT position anyway.
row as compared with the DBKEY based update.
> The old syntax (pre Fb 2)I wouldn't call it "old", as it's perfectly valid and supported in all
>
> for select FOO from YAK
> FOR UPDATE
> into :var_foo, :var_yak
> AS CURSOR aCursor
> do begin
> <do some work>
> update YAK set Foo=:var_work
> where current of aCursor ;
> end
FB versions :-)
The new PSQL cursor feature in v2 looks like an overkill for such a
simple operation, it's basically targeted to more complicated usage cases.
Dmitry