Re: a wierd query

Поиск
Список
Период
Сортировка
От Edmund Bacon
Тема Re: a wierd query
Дата
Msg-id 40A393FF.3030806@onesystem.com
обсуждение исходный текст
Ответ на Re: a wierd query  (sad <sad@bankir.ru>)
Ответы Re: a wierd query  (sad <sad@bankir.ru>)
Список pgsql-sql
sad wrote:
> select distinct a as F from table
> union
> select distinct b as F from table;
>

Note that UNION only returns the unique values of the union
You can get repeated values by using UNION ALL.


-- 
Edmund Bacon <ebacon@onesystem.com>


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

Предыдущее
От: Stef
Дата:
Сообщение: Re: Exceptions when 0 rows affected.
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: isolation level