0 0

mysql 中使用游标时,想用类似sqlserver中update where current of 这种功能?0

mysql 中使用游标时,想用类似sqlserver中update where current of 这种功能,但是update where current of似乎在mysql中是不可用的,应为mysql的游标时只读的。有什么其它解决方案吗?
2014年7月25日 11:06

1个答案 按时间排序 按投票排序

0 0

好像没有的  mysql官方也说了
http://dev.mysql.com/doc/refman/5.0/en/cursor-restrictions.html


Cursors are read only; you cannot use a cursor to update rows.

UPDATE WHERE CURRENT OF and DELETE WHERE CURRENT OF are not implemented, because updatable cursors are not supported.

Cursors are nonholdable (not held open after a commit).

Cursors are asensitive.

Cursors are nonscrollable.

Cursors are not named. The statement handler acts as the cursor ID.

2014年7月25日 11:19

相关推荐

Global site tag (gtag.js) - Google Analytics