Re: primary + foreign key
От
Huub
Тема
Re: primary + foreign key
Дата
Msg-id
at9jbk$1q3g$1@news.hub.org
Ответ на
Re: primary + foreign key (Tomasz Myrta)
Список
Дерево обсуждения
primary + foreign key Huub <v.niekerk@freeler.nl>
Re: primary + foreign key Tomasz Myrta <jasiek@klaster.net>
Re: primary + foreign key Tomasz Myrta <jasiek@klaster.net>
Re: primary + foreign key Huub <v.niekerk@freeler.nl>
Re: primary + foreign key Roberto Mello <rmello@cc.usu.edu>
Re: primary + foreign key Bret Hughes <bhughes@elevating.com>
Re: primary + foreign key Huub <v.niekerk@freeler.nl>
Hi, I suppose 'detail' is the table name? And what is master? Thanks Huub > create table detail > ( > id1 integer, > id2 integer, > CONSTRAINT c1 PRIMARY KEY(id1,id2), > CONSTRAINT c2 FOREIGN KEY(id1,id2) REFERENCES master > ); > > Do you really need such detail table? You can just add columns to master > table. > > Tomasz Myrta > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html
В списке pgsql-sql по дате отправления