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
Explain the difference between primary key and candidate key in mysql?
Can you tell few best practices to be followed for optimization in sql?
What is the storage engine for mysql?
using primary can we relate two table, with out foreign key?
What is innodb_buffer_pool_size?
What is ISAM?
How do I connect to mysql database?
What is mysql enterprise edition?
How can we get total number of records by query in mysql?
How do you rename a procedure in mysql?
What is save point in mysql?
How can you handle the –secure-file-priv in mysql?
How can we change the data type of a column of a table?
What is the latest version of php and mysql?
what is constraints? Also explain the different types of constraints?