I wish to create a trigger that would PREVENT any deletion on a given table if the day is either sunday or sat AND the time is between 14:00 and 16:00
Currently time is not a big deal, just how can I make the trigger stop the deletion action?
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.
The raising of the error will implicitly rollback the transaction and stop the delete.