sql 执行报错,why? 帮我改改,谢谢
declare cursor_basic cursor scroll for select fact_id ,used from basic_db where used=0 for update of used,fact_id
fetch next from cursor_basic into @vchfact_id
while @@fetch_status = 0
begin
...........
end
close cursor_basic
服务器: 消息 16957,级别 16,状态 4,过程 tuili,行 29
[Microsoft][ODBC SQL Server Driver][SQL Server]在 READ ONLY 游标上不能指定 FOR UPDATE。