| От | Nelio Alves Pereira Filho |
|---|---|
| Тема | Order of Rules |
| Дата | |
| Msg-id | 3A77220A.8649F2EE@ifx.com.br обсуждение исходный текст |
| Ответы |
Re: Order of Rules
Re: Order of Rules |
| Список | pgsql-general |
I read at the docs that rules are executed before the query that generated them. Is there any way to change this? Here's my problem: I have two tables, A and B, and after an INSERT on table A, I want to update an specific field on table B, with the result of a sum in A. To do this I needed some information about the row just inserted, so I used rules. As my sum is running before the insertion, its result is wrong. Any ideas? Tks -- Nelio Alves Pereira Filho IFX Networks - www.ifx.com.br +55 11 3365-5863 nelio@ifx.com.br
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера