| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера