Re: DATESTYLE and 0000-00-00

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: DATESTYLE and 0000-00-00
Дата
Msg-id 20051006183745.GA17388@winnie.fuhr.org
обсуждение исходный текст
Ответ на DATESTYLE and 0000-00-00  (Joshua Kramer <josh@globalherald.net>)
Список pgsql-sql
On Thu, Oct 06, 2005 at 09:01:22AM -0400, Joshua Kramer wrote:
> I have my DATESTYLE set to ISO MDY.
> 
> When I try to create a table with a default date of 0000-00-00, psql says 
> that this is an invalid date.  Why, and can (or how can I) get it to 
> accept 0000-00-00 as a valid date?

Why do you want to, considering that 0000-00-00 is *not* a valid
date?  Why not use NULL to represent an unknown value?

-- 
Michael Fuhr


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: DATESTYLE and 0000-00-00
Следующее
От: Hector Rosas
Дата:
Сообщение: Selecting records not present in related tables