| From: | Richard Emberson <emberson(at)phc(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | sql-update: WHERE CURRENT OF cursor |
| Date: | 2002-03-22 21:17:42 |
| Message-ID: | 3C9B9F76.87233139@phc.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Just to make sure I understand. In the 7.2 documentation,
sql-update.html, at the bottom it says:
Compatibility
SQL92
SQL92 defines a different syntax for the positioned UPDATE statement:
UPDATE table SET column = expression [, ...]
WHERE CURRENT OF cursor
where cursor identifies an open cursor.
Does this mean that one can not do an update based upon a cursor's
current position??
If so that kind of limits the uses of a cursor, one has to not only do a
SELECT but then
an UPDATE where the whole table is once again scanned???
Also, I tried to use a column name in a SELECT ... FOR UPDATE
column_name,
but I could not, it wanted the table_name. This is an incompatiblity
also but does not
appear in the documentation.
Richard
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Herb Blacker | 2002-03-22 22:43:09 | Encrypting |
| Previous Message | Bruce Momjian | 2002-03-22 19:52:29 | Re: Small question |