Quantcast
Channel: Database Design forum
Viewing all articles
Browse latest Browse all 2729

How to Create a Before Insert Trigger?

$
0
0

Hello, I need to create a before insert trigger.

Here's what I need to do:

If inserted.serialNumber exists in the current table AND inserted.opDateTime exists in the current table

Then quit the insert operation

else

Let the insert operation continue.

Can any one show me how to construct the trigger?

Thanks.



Viewing all articles
Browse latest Browse all 2729


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>