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)
Список
Дерево обсуждения
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 по дате отправления