From: | Marc Grimme <grimme(at)atix(dot)de> |
---|---|
To: | "pgsql-sql(at)postgreSQL(dot)org" <pgsql-sql(at)postgreSQL(dot)org> |
Subject: | SQL-Query 2 get primary key |
Date: | 1999-02-19 13:22:34 |
Message-ID: | 36CD659A.438BE39B@atix.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
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(at)informatik(dot)tu-muenchen(dot)de, grimme(at)atix(dot)de
-----------------------------------------------------------
The UNIX Guru's View of Sex:
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ;
sleep
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 1999-02-19 14:13:29 | Re: [HACKERS] large objects failing (hpux10.20 sparc/solaris 2.6, gcc 2.8.1) |
Previous Message | Ron Snyder | 1999-02-19 10:50:16 | Re: [HACKERS] large objects failing (hpux10.20 sparc/solaris 2.6, gcc 2.8.1) |
From | Date | Subject | |
---|---|---|---|
Next Message | Frank Barknecht | 1999-02-19 14:28:33 | Re: [SQL] Insert a long text |
Previous Message | Anatoly K. Lasareff | 1999-02-19 12:25:50 | Re: [SQL] Insert a long text |