Received: from viemta05.chello.at (viemta05.chello.at [195.34.133.55]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f45DEXA57533 for ; Sat, 5 May 2001 09:14:33 -0400 (EDT) (envelope-from cm@chello.at) Received: from server ([212.17.110.55]) by viemta05.chello.at (InterMail vK.4.03.02.00 201-232-124 license 6aea1bd1f01aef5a9a73363c16ebee43) with ESMTP id <20010505131421.KAAX29087.viemta05@server>; Sat, 5 May 2001 15:14:21 +0200 From: "Christian Marschalek" To: "'Brian Z'" Cc: "[GENERAL] PostgreSQL" Subject: RE: [ADMIN] Primary Keys Date: Sat, 5 May 2001 15:15:15 +0200 Message-ID: <000101c0d565$7e19b100$0200a8c0@server> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <9ckl5q$2jp4$1@news.tht.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200105/233 X-Sequence-Number: 8972 I'll quote Thomas F.O'Connell on this one as it has been discussed just some days ago: first of all, i recommend checking out the syntax for the CREATE TABLE command. it's available here: http://postgresql.readysetnet.com/users-lounge/docs/7.1/postgres/sql-cre atetable.html for a quick example, though: create table foo ( bar int4, baz int4, ola int4, primary key( bar, baz ) ); this statement will make the columns bar and baz coincidentally the primary key for the table foo. -tfo > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Brian Z > Sent: Monday, April 30, 2001 11:21 PM > To: pgsql-admin@postgresql.org.pgsql-general@postgresql.org > Subject: [ADMIN] Primary Keys > > > How can you create a Primary Key which contains multiple > columns on for a table. > > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an > appropriate subscribe-nomail command to > majordomo@postgresql.org so that your message can get through > to the mailing list cleanly >