multimpe records output from a 'no-table' source

Поиск
Список
Период
Сортировка
От Rafal Pietrak
Тема multimpe records output from a 'no-table' source
Дата
Msg-id 1156485472.10692.12.camel@zorro.isa-geek.com
обсуждение исходный текст
Ответы Re: multimpe records output from a 'no-table' source
Список pgsql-general
Hi all,

There is this functions like 'current_date', 'current_database', etc.
yielding a row of data without any table to source rows from. Like:
    dev=# SELECT current_date;
        date
    ------------
     2006-08-25
    (1 row)

Is there a way to get multiple rows? Like:
    dev=# SELECT current_date where date between now and yesterday;
        date
    ------------
     2006-08-24
     2006-08-25
    (2 rows)
(of cource this is 'cooked' example, as I haven't figured out how to
achieve this).
Or:
    dev=# SELECT * where a::numeric between 1 and 3;
        a
    ------------
     1
     3
     2
    (3 rows)

--
-R

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FW: Serverlog 100GB
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: multimpe records output from a 'no-table' source