From: Wei <wengwei@gmail.com>
To: pgsql-sql@postgresql.org
Subject: How do I convert an integet to a timestamp?
Date: 12 Sep 2005 11:01:08 -0700
Message-ID: <1126548068.702382.67260@z14g2000cwz.googlegroups.com> (raw)
Hi.
I followed the doc and tried "select CAST(1126547334 AS timestamp)" and
I only got an error response that says: ERROR: cannot cast type
integer to timestamp without time zone.
What is the proper way to do the conversion?
Thanks
Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: wengwei@gmail.com
Subject: Re: How do I convert an integet to a timestamp?
In-Reply-To: <1126548068.702382.67260@z14g2000cwz.googlegroups.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox