Re: Dates rejected

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Dates rejected
Дата
Msg-id 20061016151724.GA8114@KanotixBox
обсуждение исходный текст
Ответ на Dates rejected  ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>)
Список pgsql-general
Carlos H. Reimer <carlos.reimer@opendb.com.br> schrieb:

>
> Hi,
>
> WeŽve a simple insert that is not working. The strange thing is that all kind
> of date are working with the exception of 15/10 (DD/MM) dates.
>
> create table tt_teste (datfis timestamp without time zone not null
>  CHECK (datfis = trunc(datfis::timestamp without time zone)));
                   ^^^^^

we don't have such a function, perhaps date_trunc()?


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: "Carlos H. Reimer"
Дата:
Сообщение: Dates rejected
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Dates rejected