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.
在查询大表时,我经常会这样做:
select * from table fetch first 50 rows only;
来限制结果。
如果我不小心做了一个:
select * from large_table
并且需要停止查询,如果我点击CTRL+C,它将让我退出 db2 提示符。是否有一个关键命令可以停止查询并保持我的会话?
CTRL+C
编辑:这全部来自命令行。
也许,您可以使用CANCEL QUERY命令。