Handling multiple records in a MS SQL trigger

前端 未结 5 476
猫巷女王i
猫巷女王i 2020-12-13 16:43

I am having to use triggers in MSSQL for the first time, well triggers in general. Having read around and tested this myself I realise now that a trigger fires per command a

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 17:11

    First thing I would do is use a FAST_FORWARD cursor instead. As you are only going from one record to the next and not doing any updates this will be much better for performance.

    DECLARE CURSOR syntax

提交回复
热议问题