Received: from e104.serverdienst.de (bfs.xact.de [195.63.7.104]) by hub.org (8.9.2/8.9.1) with ESMTP id IAA75301 for ; Fri, 19 Feb 1999 08:22:38 -0500 (EST) (envelope-from grimme@atix.de) Received: from methusalix.gallien.de [129.187.25.14] by e104.serverdienst.de (SMTPD32-5.00) id A48BCE0218; Fri, 19 Feb 1999 14:18:03 +0100 Received: (qmail 9655 invoked by alias); 19 Feb 1999 13:30:06 -0000 Received: from taugnix.gallien.de (HELO atix.de) (marc@192.168.3.10) by methusalix.gallien.de with SMTP; 19 Feb 1999 13:30:06 -0000 Sender: marc Message-ID: <36CD659A.438BE39B@atix.de> Date: Fri, 19 Feb 1999 14:22:34 +0100 From: Marc Grimme Organization: ATIX computer systems X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.36 i586) X-Accept-Language: en MIME-Version: 1.0 To: "pgsql-sql@postgreSQL.org" Subject: SQL-Query 2 get primary key Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, if I create a table like this: CREATE TABLE test ( id decimal(3) primary key, name varchar(32)); how can I ask postgres which is the primary key from table test? I hope to get something like "id is the primary key from table test.". Any ideas Marc -- ----------------------------------------------------------- Marc Grimme - An der Muehle 1 - 85716 Unterschleissheim Fon: +49 89 37 48 81 22 - +49 89 37 48 92 7 - 3/0 - mail2: grimme@informatik.tu-muenchen.de, grimme@atix.de ----------------------------------------------------------- The UNIX Guru's View of Sex: # unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep