Re: insert a SYSTIMESTAMP value in postgres

From: Condor <condor(at)stz-bg(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: insert a SYSTIMESTAMP value in postgres
Date: 2011-06-20 20:55:51
Message-ID: c2449f86cd306ec543e6a2e660976596@stz-bg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 20 Jun 2011 15:32:31 -0400, Leon Match wrote:

> Hello,
>

> I am trying to re-create few objects from oracle into postgres.
>
>
I have a problem inserting a timestamp value into the table:
>
>
insert into request_queue (request_id, received_time
>
> )
>
>
values (new.request_id, SYSTIMESTAMP
>
> );
>
> How can I insert a
dynamic timestamp value in postgress, please?
>
> Thank you,
>
>
Leon
>
> leon(dot)match(at)convergia(dot)net

May be: insert into request_queue
(request_id, received_time) values (new.request_id,
(abstime(('now'::text)::timestamp(6) with time zone))::integer);

--

Regards,
Condor

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raghavendra 2011-06-20 21:10:29 Re: how to find a tablespace for the table?
Previous Message hyelluas 2011-06-20 20:52:48 Re: how to find a tablespace for the table?