|
|
|
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 |
|
||
|
|

start [/forum/topic.php?fid=56&gotonew=1&tid=2015938]: |
0ms |
get settings: |
9ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
68ms |
get topic data: |
11ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
| others: | 236ms |
| total: | 388ms |

| 0 / 0 |
