Re: checking date format with postgresql without creating

Поиск
Список
Период
Сортировка
От Neil Zanella
Тема Re: checking date format with postgresql without creating
Дата
Msg-id Pine.A41.4.33.0111231829080.35828-100000@gpu1.srv.ualberta.ca
обсуждение исходный текст
Ответ на Re: checking date format with postgresql without creating  (Alvaro Herrera <alvherre@atentus.com>)
Список pgsql-general
Thanks. I notice that this method is not SQL compliant and thus
is not portable to other DBMSs.

Thanks,

Neil

On Tue, 20 Nov 2001, Alvaro Herrera wrote:

> On Mon, 19 Nov 2001, Neil Zanella wrote:
>
> > Hello,
> >
> > I would like to be able to check whether some date is a valid date by
> > asking postgresql? Is this possible?
>
> Sure:
>
> alvherre=> select '28 feb 2001'::date;
>     date
> ------------
>  2001-02-28
> (1 row)
>
> alvherre=> select '29 feb 2001'::date;
> ERROR:  Bad date external representation '29 feb 2001'
>
> You don't need a table to do it.
>
> --
> Alvaro Herrera (<alvherre[@]atentus.com>)
>


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

Предыдущее
От: sara_software@hotmail.com (sara_software)
Дата:
Сообщение: Rule
Следующее
От: Culley Harrelson
Дата:
Сообщение: vacuum