Re: ERROR: More than one tuple returned by a subselect used as an expression.

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: ERROR: More than one tuple returned by a subselect used as an expression.
Дата
Msg-id 200304031655.31704.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: ERROR: More than one tuple returned by a subselect used as an expression.  ("Mel Jamero" <mel@gmanmi.tv>)
Список pgsql-novice
Mel,

> Thanks a lot Josh!!

You're welcome.

> I wasn't thinking too hard..
>
> but then again the 2nd option (UPDATE..SET..FROM) you gave is really
> something new to me. =)

Unlike *some* databases, PostgreSQL supports sub-selects just about anywhere;
in the SELECT, FROM, WHERE, and/or HAVING clauses.  I recommend buying a good
advanced SQL book to give you and idea of the possibilities, such as Joe
Celko's "SQL for Smarties, 2nd Ed.".


--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: question about auto increment like
Следующее
От: Don Patou
Дата:
Сообщение: configuring postgresql on the browser