Re: OT: seeking query help, where?

Поиск
Список
Период
Сортировка
От Tim Lynch
Тема Re: OT: seeking query help, where?
Дата
Msg-id 005901c2bdc4$a6174de0$2c0210ac@loisaida
обсуждение исходный текст
Ответ на OT: seeking query help, where?  ("Tim Lynch" <admin+pgsqladmin@thirdage.com>)
Список pgsql-admin
UNION! thanks everyone!

i'll take this stuff up on the pgsql-sql list in the future.

union does intra- and inter- table distinct, notice `red' and `two':

test=> select str from foo ;
 str
-----
 one
 two
 two
 red
(4 rows)

test=> select str from bar ;
  str
--------
 red
 orange
 yellow
 green
 blue
 indigo
 violet
 red
(8 rows)

test=> select str from foo union ( select str from bar ) ;
  str
--------
 blue
 green
 indigo
 one
 orange
 red
 two
 violet
 yellow
(9 rows)


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

Предыдущее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: OT: seeking query help, where?
Следующее
От: Kemin Zhou
Дата:
Сообщение: pg_restore problem