Re: [GENERAL] primary key

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: antibo(at)mclink(dot)it, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] primary key
Date: 1998-09-09 15:04:53
Message-ID: l03110708b21c4949fde6@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 16:35 +0200 on 9/9/98, Andrea Antibo wrote:

> CREATE TABLE films (
> code CHARACTER(5) CONSTRAINT firstkey PRIMARY KEY,
> title CHARACTER VARYING(40) NOT NULL,
> did DECIMAL(3) NOT NULL,
> date_prod DATE,
> kind CHAR(10),
> len INTERVAL HOUR TO MINUTE );
>
>
> but I have error near CONSTRAINT.
>
> Maybe this version of postgres can't accept the primary key?

True. No primary keys in 6.2.x. Just create a unique index on the code
field after creating the table (preferably, after loading data, if there is
any).

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

  • primary key at 1998-09-09 14:35:32 from Andrea Antibo

Browse pgsql-general by date

  From Date Subject
Next Message Sferacarta Software 1998-09-09 15:29:27 Re: [GENERAL] primary key
Previous Message Andrea Antibo 1998-09-09 14:35:32 primary key