Re: Strange interaction of union and expressions

Поиск
Список
Период
Сортировка
От Kevin Murphy
Тема Re: Strange interaction of union and expressions
Дата
Msg-id ed92fde15115719583b3538e42aad0b3@speakeasy.net
обсуждение исходный текст
Ответ на Strange interaction of union and expressions  (Aaron Bingham <bingham@cenix-bioscience.com>)
Список pgsql-general
On Apr 20, 2005, at 1:24 PM, Aaron Bingham wrote:
> create table a (foo varchar);
> insert into a (foo) values ('baz');
> create table b (foo varchar);
> insert into b (foo) values ('woof');
> select '"' || foo || '"' as foo
>     from (select foo from a) as bar
>         union select foo from b;
>

No, it's doing what you asked.

You mean:

select '"' || foo || '"' from (select foo from a union select foo from
b) as subq;

Right?

-Kevin


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Strange interaction of union and expressions
Следующее
От: "Christopher J. Bottaro"
Дата:
Сообщение: CURRENT_TIMESTAMP vs actual time