From: | Einar Karttunen <ekarttun(at)cs(dot)Helsinki(dot)FI> |
---|---|
To: | Brian Z <brian0(at)verizon(dot)net> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Primary Keys |
Date: | 2001-05-07 09:04:11 |
Message-ID: | Pine.LNX.4.30.0105071159220.873-100000@kissaholmen.cs.Helsinki.FI |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin 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
From | Date | Subject | |
---|---|---|---|
Next Message | Mario Jorge Nunes Filipe | 2001-05-07 13:34:47 | Multivyte between different versions |
Previous Message | Oliver Vecernik | 2001-05-06 15:51:56 | Re: general question on OIDs |
From | Date | Subject | |
---|---|---|---|
Next Message | Arnold Gamboa | 2001-05-07 11:39:53 | PostgreSQL vs. Interbase |
Previous Message | Jorge Escalante | 2001-05-07 08:48:29 | Nu-B Question |