Using a cursor with dynamic SQL in a stored procedure

前端 未结 8 2232
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 21:37

I have a dynamic SQL statement I\'ve created in a stored procedure. I need to iterate over the results using a cursor. I\'m having a hard time figuring out the right syntax.

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 21:58

    There is another example which I would like to share with you
    :D http://www.sommarskog.se/dynamic_sql.html#cursor0

提交回复
热议问题