btw:
游标提取的记录是用来被删除的。
cursor is select x from tablea.
...
delete from tablea where ....
多谢了。
...全文
1665打赏收藏
一个操作执行了10多个小时还没有完?不知为什么。
一个存储过程,需要在100万条数据里删除1%的数据,同时还需要在其它表里删除1%的数据。 使用了游标(必须使用)。且有索引。不知如何解决。 btw: 游标提取的记录是用来被删除的。 cursor is select x from tablea. ... delete from tablea where .... 多谢了。