|
|
|
pervasive trigger
|
|||
|---|---|---|---|
|
#18+
могу ли я как нибудь написать типа: create trigger MyTable_BU before update on MyTable for each row begin update MyTable set Count_of_child=Count_of_child+1 where ID=new.parent_id; update MyTable set Count_of_child=Count_of_child-1 where ID=old.parent_id; end; то есть если я хочу при изменении записи проделать ряд операций могу ли я использовать begin ... end ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2008, 10:37:55 |
|
||
|
|

start [/forum/topic.php?fid=56&msg=35325281&tid=2015938]: |
0ms |
get settings: |
16ms |
get forum list: |
21ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
51ms |
get topic data: |
15ms |
get forum data: |
4ms |
get page messages: |
44ms |
get tp. blocked users: |
2ms |
| others: | 290ms |
| total: | 455ms |

| 0 / 0 |
