|
|
|
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/search_topic.php?author=Y307&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
9ms |
get forum list: |
11ms |
get settings: |
6ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
37ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
25ms |
get tp. blocked users: |
2ms |
| others: | 574ms |
| total: | 699ms |

| 0 / 0 |
