Error in creating Primary Key

Поиск
Список
Период
Сортировка
От Mark Hortman
Тема Error in creating Primary Key
Дата
Msg-id 38946614.38E60DF8@swapstuff.com
обсуждение исходный текст
Список pgsql-admin
Right out of the manual I am using the command...
CREATE TABLE distributors (
     did      DECIMAL(03) PRIMARY KEY DEFAULT NEXTVAL('serial'),
     name     VARCHAR(40) NOT NULL CHECK (name <> '')
);

Whenever I try to use a primary key, I get a message
notice: Create table/primary key will create implicit index
'distributors_pkey' for table distributors
and Worse...

ERROR: Can't find a default operator class for type 1700.

Any help would be appreciated....


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

Предыдущее
От: "Laurent CASTELLANI"
Дата:
Сообщение: Info
Следующее
От: Peter Vazsonyi
Дата:
Сообщение: Re: [ADMIN] Attribute 'aggtransfn1' is repeated