multimpe records output from a 'no-table' source

From: Rafal Pietrak <rafal(at)zorro(dot)isa-geek(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: multimpe records output from a 'no-table' source
Date: 2006-08-25 05:57:52
Message-ID: 1156485472.10692.12.camel@zorro.isa-geek.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-08-25 06:02:09 Re: multimpe records output from a 'no-table' source
Previous Message Tom Lane 2006-08-25 04:36:41 Re: FW: Serverlog 100GB