Search Postgresql Archives

Re: difference between current_timestamp and now() in quotes

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

 



Adrian Klaver escribió:

> At least on 8.2  'now()' does not work either at least not in the way I think 
> you want. I get:
> 
> test=# SELECT 'now()';
>  ?column?
> ----------
>  now()
> (1 row)

alvherre=# select 'now()'::unknown::timestamptz;
          timestamptz          
-------------------------------
 2009-01-22 15:01:46.352979-03
(1 fila)


It even works if you use "text" instead of unknown.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[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