|
|
Question : Trigger Syntax for Insert after Update
|
|
Hi, I have a Table Caled ORDERS. in that table there is a Column named STATUS, so whenever the Status is updated to "I" I want to insert information about that order into a new Table Called YesterdayLog.
by default Status has Value "N" and it keep on changing. only if its "I" i want to Fire the Trigger to insert records into the Table. Now is it possible to do a Join within the Trigger to insert some other Values as well?
for Example Orders Table has Order numbers, Lines table has the Items for those orders, can I insert items as well into new Triger when it Fires?
Please Provide the Syntax.
Thanks
|
Answer : Trigger Syntax for Insert after Update
|
|
you are talking probably < 1 msec to run the trigger, so no, 30 changes per hour will not be a problem. if you had 30 per second you might get concerned about performance.....
|
|
|
|
|