how to cast localtimestamp to bigint???

Поиск
Список
Период
Сортировка
От Pradeepkumar, Pyatalo (IE10)
Тема how to cast localtimestamp to bigint???
Дата
Msg-id 77ED2BF75D59D1439F90412CC5B109741027FF0F@ie10-sahara.hiso.honeywell.com
обсуждение исходный текст
Ответы Re: [SQL] how to cast localtimestamp to bigint???  (Edmund Bacon <ebacon@onesystem.com>)
Re: [SQL] how to cast localtimestamp to bigint???  (Guy Fraser <guy@incentre.net>)
Re: [SQL] how to cast localtimestamp to bigint???  (george young <gry@ll.mit.edu>)
Список pgsql-novice
Hi,

I am having a table something like this....

CREATE TABLE(PointId integer, PointName varchar(50),PointType integer,
createtime bigint);

where createtime is the current timestamp when the tuple is inserted.

now how do I insert values into the above table. Is there a way to cast
timestamp to bigint.
Also can anyone suggest as to which date function to use -
CURRENT_TIMESTAMP, LOCALTIMESTAMP, timeofday(), now....


> With Best Regards
> Pradeep Kumar P J
>

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

Предыдущее
От: Raphael Bauduin
Дата:
Сообщение: stress testing and performance monitoring
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: stress testing and performance monitoring