beckhambobo(beckham)老大请进
续上一个帖子for update of 和for update的区别
http://community.csdn.net/Expert/TopicView3.asp?id=5490597
beckhambobo老大提到的bug,存在疑问如下:
where current of cursor_name不是用来表示游标取得的当前的纪录么
cursor t_sor is
select a.name
from a,b
where a.id = b.id
for update of a.id;
游标取得的是a表中的纪录,而delete b WHERE CURRENT OF t_sor;删除的是b表的数据,返回错误也是正常啊,为什么老大认为这个应该是错的呢
猜测where current of 取得游标指针指着的当前纪录的rowid,然后根据rowid进行update,delete之类的操作