UPDATE subselect?

Поиск
Список
Период
Сортировка
От Chris Bitmead
Тема UPDATE subselect?
Дата
Msg-id 371736C4.96C8469E@bigfoot.com
обсуждение исходный текст
Список pgsql-sql
What is the correct syntax for this UPDATE?

CREATE TABLE category ( name text, image text, url text, parent oid[]
);
update category set parent = '{0,0}' where name='slr';
So far so good...
update category set parent[0] = (SELECT oid from mfr where
name='canon');
ERROR:  parser: parse error at or near "select"



-- 
Chris Bitmead
http://www.bigfoot.com/~chris.bitmead
mailto:chris.bitmead@bigfoot.com


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

Предыдущее
От: Chairudin Sentosa
Дата:
Сообщение: Update on 6.5
Следующее
От: José Soares
Дата:
Сообщение: Re: [SQL] Update on 6.5