Re: Partial or incomplete dates

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Partial or incomplete dates
Дата
Msg-id 20050312161719.GA22317@wolff.to
обсуждение исходный текст
Ответ на Partial or incomplete dates  ("Leif B. Kristensen" <leif@solumslekt.org>)
Список pgsql-general
On Sat, Mar 12, 2005 at 11:30:03 +0100,
  "Leif B. Kristensen" <leif@solumslekt.org> wrote:
>
> In MySQL, the checking on dates is very relaxed, so it's totally legal
> to enter a date as '1731-00-00', and let your own program logic decide
> that this means just the year 1731. Do I have to make my own data type
> to store and manipulate partial dates, or has somebody already done it?
> Or is there a way to use relaxed date checking in PostgreSQL?

There is no existing datatype like that. Probably the best thing to do
is to store the year, month and day as separate integers and allow for
nulls or special codes to indicate missing data.

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

Предыдущее
От: Mike Rylander
Дата:
Сообщение: Re: partitionning
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Unique Indexes