Foreign Key in PostGreSQL

Поиск
Список
Период
Сортировка
От Filipi Damasceno Viana
Тема Foreign Key in PostGreSQL
Дата
Msg-id 199906022029.RAA01953@europa.em.pucrs.br
обсуждение исходный текст
Список pgsql-hackers
I am a universitary student from BRASIL, and I�m using PostGreSQL data base.
I�m designing my data base and I have one question.
How to create a foreing key in PostGreSQL.
I�m using the following command:
CREATE TABLE test(
pnr char(10),
nome char(20),
id   decimal REFERENCE <parent table>);

and

CREATE TABLE test(
pnr char(10),
nome char(20),
id decimal,
FOREING KEY (id) REFERENCES <parent table>);

Where parent table is the table with the primary key.

Regards

Filipi Damasceno Vianna
&
Alessandro Orso


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Nat Howard"
Дата:
Сообщение: RE: [HACKERS] Re: [SQL] Column name's length
Следующее
От: David Sauer
Дата:
Сообщение: current CVS snapshot of pgsql crash ...