Search Postgresql Archives

multimpe records output from a 'no-table' source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux