Re: Fixing faulty dates - select on day part of a date field

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Fixing faulty dates - select on day part of a date field
Дата
Msg-id GNELIHDDFBOCMGBFGEFOEEKBCAAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Fixing faulty dates - select on day part of a date field  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Ответы Re: Fixing faulty dates - select on day part of a date field  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Список pgsql-sql
> update calls set date_part('day',xdate) =
> date_part('month',xdate),
>        date_part('month',xdate) = date_part('day',xdate)
>        where date_part('day',xdate) < 13 and xdate < '2001/11/08';
>
> (2001/11/08 is when I found/fixed the insert problem)

You should always use the ISO date format - it avoids all these problems,
and is unambiguous.  It is: YYYY-MM-DD

Chris



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

Предыдущее
От: "Peter T. Brown"
Дата:
Сообщение: contracting tables
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Can I CONSTRAIN a particular value to be UNIQUE?