creating triggers: need help

Поиск
Список
Период
Сортировка
От Navdeep Singh
Тема creating triggers: need help
Дата
Msg-id CAP0AM7z7x2vfRxzkZ9VVeD__nUeKdKgzJ+wZ_v6G1DawSpx1Kw@mail.gmail.com
обсуждение исходный текст
Ответы Re: creating triggers: need help  (Bartosz Dmytrak <bdmytrak@eranet.pl>)
Список pgsql-novice
Hey!

I am a penultimate year student of computer science and engg. I am looking for a way to create a trigger in postgresql. I've found some abstract methods for this on web but could not implement it. The description of the trigger is as follows:
   I have two tables, one named people and other named rich. The people table contains two columns: name, no. of houses. The rich table contains the same columns.  I need to create a trigger to insert the tuple of the people table into the rich table when the number of houses of the given person (name) reaches, lets say 10. 

Please help me with the sql commands to implement the aforementioned transaction.

Thanks, 
Navdeep

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

Предыдущее
От: Ganesh Borse
Дата:
Сообщение: Re: select on bytea column returns hex encoded data instead of binary data
Следующее
От: Bartosz Dmytrak
Дата:
Сообщение: Re: Partitioning (Was: Foreign Key to an (abstract?) Parent Table)