| От | Tomasz Myrta |
|---|---|
| Тема | Re: references table(multiple columns go here) |
| Дата | |
| Msg-id | 3E00BBC5.6040505@klaster.net обсуждение исходный текст |
| Ответ на | references table(multiple columns go here) (Gary Stainburn <gary.stainburn@ringways.co.uk>) |
| Список | 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
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера