FK pointing to a VIEW

Поиск
Список
Период
Сортировка
От Sandro Dentella
Тема FK pointing to a VIEW
Дата
Msg-id 20061110191611.GA24084@casa.e-den.it
обсуждение исходный текст
Ответы Re: FK pointing to a VIEW  ("Merlin Moncure" <mmoncure@gmail.com>)
Re: FK pointing to a VIEW  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-general
Do I understad correctly that i cannot point a Foreign Key to a view? Which
is the rationale of this?

TIA
sandro
*:-)



test=# alter table mail_inviate
test-#    add constraint mail_inviate_fk
test-#    FOREIGN KEY (mittente) REFERENCES mail_view(mail_address)
test-# ;
ERROR:  referenced relation "mail_view" is not a table

--
Sandro Dentella  *:-)
http://www.tksql.org                    TkSQL Home page - My GPL work

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

Предыдущее
От: "Andrus"
Дата:
Сообщение: Cached dataset
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: FK pointing to a VIEW