From: Tomasz Myrta <jasiek@klaster.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: references table(multiple columns go here)
Date: Wed, 18 Dec 2002 19:17:41 +0100
Message-ID: <3E00BBC5.6040505@klaster.net> (raw)
In-Reply-To: <200212181625.11316.gary.stainburn@ringways.co.uk>
References: <200212181625.11316.gary.stainburn@ringways.co.uk>
<3E00A678.5070605@klaster.net>
<200212181656.13432.gary.stainburn@ringways.co.uk>
<200212181718.42870.gary.stainburn@ringways.co.uk>
<8026.1040233829@sss.pgh.pa.us>
Tom Lane wrote:
> Gary Stainburn writes:
>
> >I've just tried this on a 7.2.1-5 system and get the same error.
>
>
> >>create table jobtypes (
> >>jid int4 default nextval('jobs_jid_seq'::text) unique not null,
> >>jdid character, -- This joint reference
> >>jrank int4 not null references ranks(rrank), -- needs sorting
> >>jdesc character varying(40), -- job description
> >>contraint c2 foreign key (jdid,jrank) references ranks (rdid,rrank)
>
> ^^^^^^^^^
>
> >>);
> >>ERROR: parser: parse error at or near "foreign"
>
>
> If that's an accurate transcription, I think "contraint" -> "constraint"
> would help...
That's right. The letter has gone somewhere...
Tomasz Myrta
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasiek@klaster.net, tgl@sss.pgh.pa.us, gary.stainburn@ringways.co.uk
Subject: Re: references table(multiple columns go here)
In-Reply-To: <3E00BBC5.6040505@klaster.net>
* 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