From: Thomas G. Lockhart <lockhart@alumni.caltech.edu>
To: D'Arcy J.M. Cain <darcy@druid.net>
Cc: Marc Grimme <grimme@atix.de>
Cc: Postgres Hackers List <hackers@postgresql.org>
Subject: Re: [HACKERS] Re: [SQL] SQL-Query 2 get primary key
Date: Sat, 20 Feb 1999 16:17:19 +0000
Message-ID: <36CEE00F.CCAA0DAB@alumni.caltech.edu> (raw)
References: <m10E4Vi-0000boC@druid.net>
> > if I create a table like this:
> > CREATE TABLE test (
> > id decimal(3) primary key,
> > name varchar(32));
<snip>
> Note that this makes the assumption that only one field can be in the
> primary key (no complex primary keys) but I don't think there will
> ever be more than one the way we declare it now.
fyi, the following syntax is allowed:
CREATE TABLE test (
id decimal(3),
name varchar(32),
primary key(id));
and multiple columns can be declared as primary keys.
- Tom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: lockhart@alumni.caltech.edu, darcy@druid.net, grimme@atix.de, hackers@postgresql.org
Subject: Re: [HACKERS] Re: [SQL] SQL-Query 2 get primary key
In-Reply-To: <36CEE00F.CCAA0DAB@alumni.caltech.edu>
References: <m10E4Vi-0000boC@druid.net> <36CEE00F.CCAA0DAB@alumni.caltech.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox