From: Jan Wieck <JanWieck@Yahoo.com>
To: datactrl <quals@bigfoot.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: problem with date/time constants
Date: Tue, 3 Jul 2001 09:31:25 -0400 (EDT)
Message-ID: <200107031331.f63DVQl18812@jupiter.us.greatbridge.com> (raw)
In-Reply-To: <006101c103bd$f01206a0$2400a8c0@hnjack>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: JanWieck@Yahoo.com, quals@bigfoot.com
Subject: Re: problem with date/time constants
In-Reply-To: <200107031331.f63DVQl18812@jupiter.us.greatbridge.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox