Re: How To Create DATETIME Data Types in A Table

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Van Ingen, Lane" <lvaningen(at)ESNCC(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How To Create DATETIME Data Types in A Table
Date: 2005-01-28 21:29:18
Message-ID: 20050128212918.GA20727@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Jan 28, 2005 at 15:57:47 -0500,
"Van Ingen, Lane" <lvaningen(at)ESNCC(dot)com> wrote:
> I am converting several databases from difference database vendors in PostgreSQL, but I am
> finding that PostgreSQL appears to not support this datatype, unlike the other vendors we use.
> The DATETIME fields coming from the other databases look like:
> '2005-01-27 15:55:04'
> How do I get the same effect in Postgres CREATE TABLE statement without losing data?

In postgres you want to use timestamp with time zone. (Or perhaps timestamp
without time zone, depending on what the timestamp represents.)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tjibbe Rijpma 2005-01-28 23:29:26 Order by and words beginning with capitals
Previous Message John DeSoi 2005-01-28 21:13:03 Re: How To Create DATETIME Data Types in A Table