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

From Jan Wieck
Subject Re: problem with date/time constants
Date
Msg-id 200107031331.f63DVQl18812@jupiter.us.greatbridge.com
Whole thread Raw
In response to problem with date/time constants  ("datactrl" <quals@bigfoot.com>)
List pgsql-sql
datactrl wrote:
> Hi,
> server:PostgreSQl 7.1
> why doesn't following statement work?
> "select now;"
   Because it's not standard SQL and now is a function.
   Use either
       SELECT CURRENT_TIMESTAMP;
   which is standard (preferred) or
       SELECT now();


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



pgsql-sql by date:

Previous
From: David Stanaway
Date:
Subject: Re: problem with date/time constants
Next
From: Jeff Eckermann
Date:
Subject: RE: How do I print a message in a function?