From: | Tomasz Myrta <jasiek(at)klaster(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: references table(multiple columns go here) |
Date: | 2002-12-18 18:17:41 |
Message-ID: | 3E00BBC5.6040505@klaster.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Gary Stainburn | 2002-12-19 09:28:19 | Re: references table(multiple columns go here) |
Previous Message | Tom Lane | 2002-12-18 17:50:29 | Re: references table(multiple columns go here) |