| От | Tom Lane |
|---|---|
| Тема | Re: Problems to be solved as soon as possible |
| Дата | |
| Msg-id | 27579.1064862734@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Problems to be solved as soon as possible (Tomasz Myrta <jasiek@klaster.net>) |
| Список | pgsql-sql |
Tomasz Myrta <jasiek@klaster.net> writes:
>> datatypes like DateTime. When i run those scripts in PostgreSQL of Red hat
>> Linux 7.2, they run perfectly. But when i run the same scrips in PostgreSQL
>> of Redhat Linux 9.0, it displays an error message of "data type DATETIME not
>> found."
> It looks like Postgresql problem, not a Redhat problem. Probably
> datetime is some not longer supported datatype.
Yes, "datetime" is an ancient name for what we now call by the
SQL-standard name "timestamp with time zone".
If changing to the standard name makes for too many changes in your
application code, you could use a domain as a kind of type alias:
create domain datetime as timestamp with time zone;
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера