pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magne Mæhre <Magne.Mahre@Sun.COM>
Cc: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: Is DATETIME an ANSI-SQL type?
Date: Tue, 15 Jan 2008 10:53:32 -0500
Message-ID: <24168.1200412412@sss.pgh.pa.us> (raw)
In-Reply-To: <478CB8FB.5040600@sun.com>
References: <1200403108.27286.63.camel@panoramix.askesis.nl>
	<478CB8FB.5040600@sun.com>

=?ISO-8859-1?Q?Magne_M=E6hre?= <Magne.Mahre@Sun.COM> writes:
> Joost Kraaijeveld wrote:
>> Can anyone tell me if DATETIME is an ANSI SQL type? 

> No.
> The Datetime types defined in SQL (ISO/IEC 9075:2003) are

> DATE
> TIME WITHOUT TIME ZONE
> TIME WITH TIME ZONE
> TIMESTAMP WITHOUT TIME ZONE
> TIMESTAMP WITH TIME ZONE

If you need to port from a system that used DATETIME as a type name,
consider defining DATETIME as a domain over whichever of the standard
types seems to have the closest semantics (likely the last of these).

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <24168.1200412412@sss.pgh.pa.us>
Permalink:  ../24168.1200412412@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24168.1200412412@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, Magne.Mahre@Sun.COM, J.Kraaijeveld@Askesis.nl
  Subject: Re: Is DATETIME an ANSI-SQL type?
  In-Reply-To: <24168.1200412412@sss.pgh.pa.us>

* 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