Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4E88D475EF7 for ; Wed, 6 Nov 2002 09:18:24 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 67C95475EC9 for ; Wed, 6 Nov 2002 09:18:23 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 90FDE381633; Wed, 6 Nov 2002 09:18:21 -0500 (EST) From: Huub X-Newsgroups: comp.databases.postgresql.sql Subject: primary keys Date: Wed, 06 Nov 2002 15:18:38 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 10 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/95 X-Sequence-Number: 10237 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. Thanks Huub