Re: Executing SQL commands via triggers without the use of procedures
В списке pgsql-sql по дате отправления:
| От | fabio |
|---|---|
| Тема | Re: Executing SQL commands via triggers without the use of procedures |
| Дата | |
| Msg-id | pan.2003.03.26.23.04.45.243238@email.it обсуждение исходный текст |
| Ответ на | Executing SQL commands via triggers without the use of procedures ("Susan Hoddinott" <susan@perth.dialix.com.au>) |
| Список | pgsql-sql |
> > Having scoured the relevant documentation I cannot find anything which indi= > cates how I simply create a database trigger to insert into a second table = > after insert on a first table, without the use of a procedure. As I do not= > want return values etc. this seems like overkill. Is it possible to creat= > e a trigger which executes SQL directly without the need to create a proced= > ure? If so, what is the syntax? > hello! I had the same problem, is possible to solve it with a rules but depend. In my db i used a trigger because,i have multiple insert in cascade and the rules dont handle this manual for trigger procedure: http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=plpgsql-trigger.html trigger vs rules http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=rules-triggers.html fabio
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера