Why an cursor opened for a select with ORDER by does not reflect updates to the subsequent table

后端 未结 3 1002
[愿得一人]
[愿得一人] 2020-12-21 12:02

I have set this little example of a strange behavior

    SET NOCOUNT ON;
    create table #tmp
    (id int identity (1,1),
    value int);

    insert into          


        
3条回答
  •  独厮守ぢ
    2020-12-21 12:47

    I think that by putting in an ORDER BY clause it then forces the CURSOR to be a STATIC CURSOR whereas without it defaults to DYNAMIC.

提交回复
热议问题