pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Huub <v.niekerk@freeler.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: primary keys
Date: Thu, 7 Nov 2002 08:35:30 -0600
Message-ID: <20021107143530.GB6881@wolff.to> (raw)
In-Reply-To: <aqb8b8$1k8v$1@news.hub.org>
References: <aqb8b8$1k8v$1@news.hub.org>

On Wed, Nov 06, 2002 at 15:18:38 +0100,
  Huub <v.niekerk@freeler.nl> wrote:
> Hi,
> 
> I want to create a table which has 2 columns, and both columns have to 
> be primary key (or: together they are the primary key). How can I do 
> this using SQL? Using pgAdminII for Postgres7.2.2 on RH8.

You can use a PRIMARY KEY table constraint. You can the SQL command
documentation for the CREATE TABLE command.



view thread (10+ messages)  latest in thread

Message-ID: <20021107143530.GB6881@wolff.to>
Permalink:  ../20021107143530.GB6881@wolff.to/
Also on:    postgresql.org/message-id/20021107143530.GB6881@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, v.niekerk@freeler.nl
  Subject: Re: primary keys
  In-Reply-To: <20021107143530.GB6881@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox