Pros and cons of using a cursor (in SQL server)

前端 未结 5 1645
太阳男子
太阳男子 2021-02-15 17:07

I asked a question here Using cursor in OLTP databases (SQL server)

where people responded saying cursors should never be used.

I feel cursors are very powerful

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-15 17:42

    They are necessary for things like dynamic SQL pivoting, but you should try and avoid using them whenever possible.

提交回复
热议问题