Re: Inserting the current date

From: Jason Earl <jason(dot)earl(at)simplot(dot)com>
To: "john" <servobit(at)www2(dot)us(dot)postgresql(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Inserting the current date
Date: 2001-12-10 17:41:12
Message-ID: 87bsh7c6rr.fsf@npa01zz001.simplot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


What exactly does sysdate do? Is it anything like CURRENT_TIME,
CURRENT_DATE, or now()?

Jason

"john" <servobit(at)www2(dot)us(dot)postgresql(dot)org> writes:

> Hi,
>
> I have a field (Date type) and I'd like to insert the current date and time.
>
> e.g.:
>
> insert into my_table( my_date_field ) values ( sysdate );
>
> Is there an equivalent to Oracle's "sysdate" keyword?
>
> Thanks,
>
> John
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2001-12-10 17:41:44 Re: RedHat6.2 - postgres 7.1.2 lib confusion
Previous Message Jason Earl 2001-12-10 17:40:17 Re: use BLOBS or use pointers to files on the filesystem?