Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 955B3475DC0 for ; Thu, 12 Dec 2002 03:29:39 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 304DA475C14 for ; Thu, 12 Dec 2002 03:29:38 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 1DF4943A587; Thu, 12 Dec 2002 03:29:38 -0500 (EST) From: Huub X-Newsgroups: comp.databases.postgresql.sql Subject: primary + foreign key Date: Thu, 12 Dec 2002 09:29:29 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 9 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.2.1) Gecko/20021130 X-Accept-Language: en-us, en To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/146 X-Sequence-Number: 10734 Hi, I want to create a table where the 2 columns are both primary as well as foreign key. What is the correct syntax for that? Thanks Huub