Re: Hello Testing

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Hello Testing
Дата
Msg-id 20030816142029.K67239-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Hello Testing  (Deepak Malhotra <deepakjm@yahoo.com>)
Список pgsql-admin
On Sat, 16 Aug 2003, [iso-8859-1] Deepak Malhotra wrote:

> Hello
>
> Any idea why I am getting
> "ERROR:  More than one tuple returned by a subselect
> used as an expression"
> while running update statement using subselect
> statement.

That usually means you're using a subselect that returns
multiple rows in a context where a scalar is expected,
for example

update foo set bar = (select abc from def);

works if def has 0 rows (giving a NULL) or 1 row (giving a value),
but if the subselect returned say 3 rows, which gets used to
update each row from foo?



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

Предыдущее
От: Deepak Malhotra
Дата:
Сообщение: Hello Testing
Следующее
От: Harald Fuchs
Дата:
Сообщение: Re: Time event