Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我执行查询并在结果区域中单击鼠标右键时,我会看到一个包含以下选项的弹出菜单:
如果我选择“Count Rows”,如果开始时间过长,有没有办法中断操作?
不,你似乎不能。
当您Count Rows从上下文菜单中选择时,它会在主 UI 线程上运行计数,挂起整个 UI,可能持续几分钟或几小时。
Count Rows
最好不要使用该功能 - 只需将select count (*) from ( < your query here>)它正确运行在可以取消的单独线程上。
select count (*) from ( < your query here>)
您可以打开一个新实例sql developer并终止计算行数的会话。我确实建议使用select count(*)查询,因为从长远来看它不那么痛苦。
sql developer
select count(*)