|
Знатоки помогите написать триггер
|
|||
---|---|---|---|
#18+
Мне нужно создать триггер на добавление и на изменение (один триггер ) который запишет в дублирующей таблице измененную строку а также имя того кто изменил,дату и число изменения а также вид (если это добавка то 1 если изменение то 2). ПОМОГИТЕ !!!!!!!!!!!! ... |
|||
:
Нравится:
Не нравится:
|
|||
27.08.2002, 10:04 |
|
Знатоки помогите написать триггер
|
|||
---|---|---|---|
#18+
А что, в MySQL есть триггера? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2002, 18:28 |
|
Знатоки помогите написать триггер
|
|||
---|---|---|---|
#18+
В документации к 4.0.3 написано: "1.7.4.4 Stored Procedures and Triggers A stored procedure is a set of SQL commands that can be compiled and stored in the server. Once this has been done, clients don't need to keep re-issuing the entire query but can refer to the stored procedure. This provides better performance because the query has to be parsed only once, and less information needs to be sent between the server and the client. You can also raise the conceptual level by having libraries of functions in the server. A trigger is a stored procedure that is invoked when a particular event occurs. For example, you can install a stored procedure that is triggered each time a record is deleted from a transaction table and that automatically deletes the corresponding customer from a customer table when all his transactions are deleted. The planned update language will be able to handle stored procedures. Our aim is to have stored procedures implemented in MySQL Server around version 5.0. We are also looking at triggers. " ... |
|||
:
Нравится:
Не нравится:
|
|||
18.09.2002, 15:46 |
|
Знатоки помогите написать триггер
|
|||
---|---|---|---|
#18+
Я бы с цветами немного по-другому похимичил... В документации к 4.0.3 написано: "1.7.4.4 Stored Procedures and Triggers A stored procedure is a set of SQL commands that can be compiled and stored in the server. Once this has been done, clients don't need to keep re-issuing the entire query but can refer to the stored procedure. This provides better performance because the query has to be parsed only once, and less information needs to be sent between the server and the client. You can also raise the conceptual level by having libraries of functions in the server. A trigger is a stored procedure that is invoked when a particular event occurs. For example, you can install a stored procedure that is triggered each time a record is deleted from a transaction table and that automatically deletes the corresponding customer from a customer table when all his transactions are deleted. The planned update language will be able to handle stored procedures. Our aim is to have stored procedures implemented in MySQL Server around version 5.0. We are also looking at triggers. " ... |
|||
:
Нравится:
Не нравится:
|
|||
23.09.2002, 14:53 |
|
|
start [/forum/topic.php?fid=47&fpage=715&tid=1856323]: |
0ms |
get settings: |
8ms |
get forum list: |
10ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
43ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
others: | 9ms |
total: | 121ms |
0 / 0 |