Re: ERROR CODE
От
Peter Eisentraut
Тема
Re: ERROR CODE
Дата
Msg-id
Pine.LNX.4.21.0005011511410.389-100000@localhost.localdomain
Ответ на
ERROR CODE (Ray Alba)
Список
Дерево обсуждения
ERROR CODE Ray Alba <ralba@dotsperinch.com>
Re: ERROR CODE Peter Eisentraut <peter_e@gmx.net>
Ray Alba writes:
> create table patienttype (
> id INT DEFAULT nextval ('category_seq'),
> parent id INT DEFAULT '0',
^^^^^^^^^
The system interprets this as field name `parent', datatype `id'. You need
to double quote the field name if you want spaces in it.
> type varchar(50));
>
> Here is the error? What is that all about?
> ERROR: Unable to locate type name 'id' in catalog
It means there is no datatype 'id'.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
В списке pgsql-general по дате отправления
От: Peter Eisentraut
Дата: