MS SQLServer 判断游标是否存在
关键词:MS SQLServer sql 判断 游标是否存在
其中 first_cursor 是游标名称
来源:http://hi.baidu.com/nextnj/blog/item/93cec37c2d2072340dd7dae8.html
原创文章,转载请注明出处:MS SQLServer 判断游标是否存在
其中 first_cursor 是游标名称
+展开
-SQL
if cursor_status('global','first_cursor')=-3 and cursor_status('local','first_cursor')=-3
begin
print '不存在'
end
else
begin
print '存在'
end
begin
print '不存在'
end
else
begin
print '存在'
end
来源:http://hi.baidu.com/nextnj/blog/item/93cec37c2d2072340dd7dae8.html
加支付宝好友偷能量挖...
原创文章,转载请注明出处:MS SQLServer 判断游标是否存在