select in update

Поиск
Список
Период
Сортировка
От Engard Ferenc
Тема select in update
Дата
Msg-id Pine.LNX.3.96.981124003803.1032D-100000@Pons.sote.hu
обсуждение исходный текст
Ответы Re: [SQL] select in update  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-sql
Hi all,

Yet another question: (quite busy today... :)

oeptest=> update shorttest2 set b=(select b from shorttest t1 where t1.a=1) where a=2;
ERROR:  parser: parse error at or near "select"

It means that the subquery in update is not implemented? And if it isn't,
how can I evade it? Maybe select ... into .., but it's not a good idea in a
big table... :(((

Any help?

Thx a lot:
Circum

 __  @
/  \    _   _                                           Engard Ferenc
l    | ( \ /  | | (\/)                      mailto:s-fery@kkt.sote.hu
\__/ | |   \_ \_/ I  I                    http://pons.sote.hu/~s-fery


В списке pgsql-sql по дате отправления:

Предыдущее
От: Engard Ferenc
Дата:
Сообщение: cursor and update + view
Следующее
От: pierre
Дата:
Сообщение: MINUS and slow 'not in'