Re: problem with date/time constants - Mailing list pgsql-sql

From Alex Pilosov
Subject Re: problem with date/time constants
Date
Msg-id Pine.BSO.4.10.10107030907520.7004-100000@spider.pilosoft.com
Whole thread Raw
In response to problem with date/time constants  ("datactrl" <quals@bigfoot.com>)
List pgsql-sql
You must either do:
select now();

or

select 'now'::timestamp;

now() is a function that takes no arguments.

it is also a special value recognized by timestamp parser.


On Tue, 3 Jul 2001, datactrl wrote:

> Hi, 
> server:PostgreSQl 7.1
> why doesn't following statement work?
> "select now;"
> 
> THANK YOU!
> JACK LIU
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://www.postgresql.org/search.mpl
> 
> 



pgsql-sql by date:

Previous
From: "datactrl"
Date:
Subject: problem with date/time constants
Next
From: David Stanaway
Date:
Subject: Re: problem with date/time constants