Re: Primary Keys - Mailing list pgsql-general

From Einar Karttunen
Subject Re: Primary Keys
Date
Msg-id Pine.LNX.4.30.0105071159220.873-100000@kissaholmen.cs.Helsinki.FI
Whole thread Raw
In response to Primary Keys  ("Brian Z" <brian0@verizon.net>)
List pgsql-general
On Mon, 30 Apr 2001, Brian Z wrote:
> How can you create a Primary Key which contains multiple columns on for a
> table.
>
CREATE TABLE foo (
    col1    integer,
    col2    text,
    col3    timestamp,
    PRIMARY KEY (col1,col2)
);

Creates the primary key on columns col1 and col2. Please see the
documentation for CREATE TABLE for further information.

- Einar Karttunen


pgsql-general by date:

Previous
From: Dariusz Pietrzak
Date:
Subject: Re: Permissions and views.
Next
From: per@nospam.mimer.se (Per Schröder)
Date:
Subject: Re: Thread or not threads?