Гость
Форумы / MySQL [игнор отключен] [закрыт для гостей] / Знатоки помогите написать триггер / 4 сообщений из 4, страница 1 из 1
27.08.2002, 10:04
    #32046034
Good
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Знатоки помогите написать триггер
Мне нужно создать триггер на добавление и на изменение (один триггер )
который запишет в дублирующей таблице измененную строку а также имя того кто изменил,дату и число изменения а также вид (если это добавка то 1 если изменение то 2).

ПОМОГИТЕ !!!!!!!!!!!!
...
Рейтинг: 0 / 0
15.09.2002, 18:28
    #32050611
lesha
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Знатоки помогите написать триггер
А что, в MySQL есть триггера?
...
Рейтинг: 0 / 0
18.09.2002, 15:46
    #32051353
Сергей *
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Знатоки помогите написать триггер
В документации к 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. "
...
Рейтинг: 0 / 0
23.09.2002, 14:53
    #32052388
vi.k
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Знатоки помогите написать триггер
Я бы с цветами немного по-другому похимичил...
В документации к 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. "
...
Рейтинг: 0 / 0
Форумы / MySQL [игнор отключен] [закрыт для гостей] / Знатоки помогите написать триггер / 4 сообщений из 4, страница 1 из 1
Целевая тема:
Создать новую тему:
Автор:
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]