Answer Posted / hrindows@gmail.com
We can use the CREATE TRIGGER statement for creating a new trigger in MySQL.
SYNTAX:
CREATE TRIGGER trigger_name
(AFTER | BEFORE) (INSERT | UPDATE | DELETE)
ON table_name FOR EACH ROW
BEGIN
--variable declarations
--trigger code
END;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.
What are the objects can be created using CREATE statement?
How do I tune a mysql query?
How do I view tables in mysql workbench?
Can a table have multiple primary keys?
Why do we use the mysql database server?
What are string data types?
Is Mysql query is case sensitive?
What is save point in mysql?
Define REGEXP?
How can we change the data type of a column of a table?
How to do login in mysql with unix shell.
How you will show all data from a table.
What is the innodb in mysql?
Is mysql distributed?