Re: problem with date/time constants

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: datactrl <quals(at)bigfoot(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: problem with date/time constants
Date: 2001-07-03 13:08:48
Message-ID: Pine.BSO.4.10.10107030907520.7004-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2001-07-03 13:31:25 Re: problem with date/time constants
Previous Message David Stanaway 2001-07-03 13:03:42 Re: problem with date/time constants