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

ПОМОГИТЕ !!!!!!!!!!!!
...
Рейтинг: 0 / 0
Знатоки помогите написать триггер
    #32050611
lesha
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
А что, в MySQL есть триггера?
...
Рейтинг: 0 / 0
Знатоки помогите написать триггер
    #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
Знатоки помогите написать триггер
    #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
4 сообщений из 4, страница 1 из 1
Форумы / MySQL [игнор отключен] [закрыт для гостей] / Знатоки помогите написать триггер
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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