primary key

From: Andrea Antibo <antibo(at)mclink(dot)it>
To: pgsql-general(at)postgreSQL(dot)org
Subject: primary key
Date: 1998-09-09 14:35:32
Message-ID: XFMail.980909163532.antibo@mclink.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I trust this query on postgresql 6.2.x

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?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Herouth Maoz 1998-09-09 15:04:53 Re: [GENERAL] primary key
Previous Message Jim Jennis 1998-09-09 13:37:13 Using a delimited Ascii File to initialize fields and array elements in bulk