Suppose I have a script with the code for a trigger, how do I actually start up the script so that the trigger is active? How do I stop it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have a script that has code for creating a MySQL trigger, you would simply execute the script in order to create the trigger assuming the script contains MySQL statements along the lines of:
http://dev.mysql.com/doc/refman/5.5/en/create-trigger.html
To get rid of a trigger that you have created, you use the
DROPstatement in MySQL accompanied by the name of the trigger, or create another script to execute the SQL statement:http://dev.mysql.com/doc/refman/5.6/en/drop-trigger.html
To execute a SQL file you would simply type
@[file_name].sqlat the SQL prompt in the command line:http://www.techonthenet.com/oracle/questions/script.php