Triggers?

Поиск
Список
Период
Сортировка
От Paulo Roberto Siqueira
Тема Triggers?
Дата
Msg-id NEBBLMEAPMNMMCFDDILOGEFICCAA.paulo.siqueira@usa.net
обсуждение исходный текст
Список pgsql-novice
    I have two tables

    alternativa1( id_altern int4 primary key, ....)
    alternativa2( id_altern int4 primary key, ....)

 I want a trigger that doesn't allow insertion of a value in one table if it
exists on the other, i.e., the following operation must be prevented:

insert into alternativa1 values(1,...)
insert into alternativa2 values(1,...)

Any suggestions on how i can implement this feature?

Paulo


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

Предыдущее
От: ghaverla@freenet.edmonton.ab.ca
Дата:
Сообщение: Fourth email on compilining 7.0.2 on Solaris 2.5.1 (fwd)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Installation Problem