Re: Are circular REFERENCES possible ?

Поиск
Список
Период
Сортировка
Искать
От
David Lizano
Тема
Re: Are circular REFERENCES possible ?
Дата
Msg-id
5.1.0.14.2.20010807122105.00b8a710@mail.izanet.com
Ответ на
Список
Дерево обсуждения
Re: Are circular REFERENCES possible ? "William Courtier" <wcourtier@travelprice.com>

>
>
>Which leads to :
>
>CREATE TABLE shops ( id_shop SERIAL PRIMARY KEY, id_cust integer 
>REFERENCES customers, .......)

You can't reference to a table who doesn't exists still.


>CREATE TABLE customers ( id_cust SERIAL PRIMARY KEY, id_defaultshop 
>integer REFERENCES shops, .......)

Perhaps you can do it something like that if:
1.- Create the two tables.
2.- Use alter table to add the constraint "references".



В списке pgsql-sql по дате отправления
От: Grigoriy G. Vovk
Дата:
От: Thomas Good
Дата:
Сообщение: Re: prob with PERL/Postgres
FAQ