how to cast localtimestamp to bigint???

From: "Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar(dot)Pyatalo(at)honeywell(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: how to cast localtimestamp to bigint???
Date: 2004-08-12 14:47:06
Message-ID: 77ED2BF75D59D1439F90412CC5B109741027FF0F@ie10-sahara.hiso.honeywell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-sql


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
>

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message ExpoShare.com 2004-08-12 16:53:20 Re: Help with query
Previous Message Raphael Bauduin 2004-08-12 13:42:48 stress testing and performance monitoring

Browse pgsql-sql by date

  From Date Subject
Next Message Oliver Elphick 2004-08-12 14:50:34 Re: Sending errors from psql to error file
Previous Message Stephan Szabo 2004-08-12 14:36:37 Re: function expression in FROM may not refer to other relations