sql语法回顾:“fetch: 提取类型 last 不能与只进游标一起使用。”
declare @qk char(4)declare cqk cursor forselect qkb.qkh from qkb,tgb where (qkm = '计算机学报' and qkb.qkh = tgb.qkh and sgjg = '未通过')open cqkfetch last from cqk into @qkupdate tgb set sgjg = '通过
原创
2016-03-11 15:10:08 ·
8422 阅读 ·
0 评论