Skip to content
Advertisement

Is there a way to terminate the insert query in a trigger?

I wonder is it able to terminate or stop the Insert if it hits the exceptions.

The trigger coding will be:

Advertisement

Answer

This is how I understood it; though, it is not clear what UPDATE TABLE in your code represents. Update which table? How? With which values?

Anyway: sample data:

Trigger:

Testing:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement