始める無料で始める

PreventOrdersUpdate in action

Let's see what the newly created trigger does when you try to update some rows in the Orders table.

Run the following script to change the order quantity to 700 for order number 425:

UPDATE Orders SET Quantity = 700 WHERE OrderID = 425;

What happens when you run the code?

この演習はコースの一部です

Building and Optimizing Triggers in SQL Server

コースを見る

実践的なインタラクティブ演習

理論を実践に変える、インタラクティブな演習のひとつをお試しください

演習を開始する