| От | Sean Davis |
|---|---|
| Тема | Re: Dates with unknown month and/or day |
| Дата | |
| Msg-id | 472F55CB.3030208@mail.nih.gov обсуждение исходный текст |
| Ответ на | Dates with unknown month and/or day (Sean Davis <sdavis2@mail.nih.gov>) |
| Список | pgsql-novice |
Christoph Della Valle wrote: > Hi > > I think it is not a very good idea to fill unknown parts of a date with > '1's, unless you introduce a new attribute "precision" or so, where you > store which part (y for year only, m for year/month etc) of your date > really can be taken seriously... > > Or you store year/month/day separately. When you want to use a date > function, you concatenate all parts and cast it as a date. This is clean > but more complicated. It depends, how often you need date-functions. > Attention: concatenation with NULL results in NULL, so you need to use > coalesce. Thanks, Chris. This is what I suspected. Sean
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера