Re: Is DATETIME an ANSI-SQL type?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is DATETIME an ANSI-SQL type?
Дата
Msg-id 24168.1200412412@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is DATETIME an ANSI-SQL type?  (Magne Mæhre <Magne.Mahre@Sun.COM>)
Ответы Re: Is DATETIME an ANSI-SQL type?  ("Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl>)
Список pgsql-sql
Magne Mæhre <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


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

Предыдущее
От: Colin Wetherbee
Дата:
Сообщение: Re: JOIN a table twice for different values in the same query
Следующее
От: John Hasler
Дата:
Сообщение: Re: UTF8 encoding and non-text data types