Re: Are circular REFERENCES possible ?

Поиск
Список
Период
Сортировка
От David Lizano
Тема Re: Are circular REFERENCES possible ?
Дата
Msg-id 5.1.0.14.2.20010807122105.00b8a710@mail.izanet.com
обсуждение исходный текст
Ответ на Are circular REFERENCES possible ?  (Denis Bucher <dbucher@niftycom.com>)
Список pgsql-sql
>
>
>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"
Дата:
Сообщение: Re: Are circular REFERENCES possible ?
Следующее
От: Thomas Good
Дата:
Сообщение: Re: prob with PERL/Postgres