Re: insert a SYSTIMESTAMP value in postgres

Поиск
Список
Период
Сортировка
От Condor
Тема Re: insert a SYSTIMESTAMP value in postgres
Дата
Msg-id c2449f86cd306ec543e6a2e660976596@stz-bg.com
обсуждение исходный текст
Ответ на insert a SYSTIMESTAMP value in postgres  ("Leon Match" <leon.match@convergia.net>)
Список 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.match@convergia.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

В списке pgsql-general по дате отправления:

Предыдущее
От: hyelluas
Дата:
Сообщение: Re: how to find a tablespace for the table?
Следующее
От: Raghavendra
Дата:
Сообщение: Re: how to find a tablespace for the table?