From: Alex Pilosov <alex@pilosoft.com>
To: datactrl <quals@bigfoot.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: problem with date/time constants
Date: Tue, 3 Jul 2001 09:08:48 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10107030907520.7004-100000@spider.pilosoft.com> (raw)
In-Reply-To: <006101c103bd$f01206a0$2400a8c0@hnjack>
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
>
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: alex@pilosoft.com, quals@bigfoot.com
Subject: Re: problem with date/time constants
In-Reply-To: <Pine.BSO.4.10.10107030907520.7004-100000@spider.pilosoft.com>
References: <006101c103bd$f01206a0$2400a8c0@hnjack> <Pine.BSO.4.10.10107030907520.7004-100000@spider.pilosoft.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