免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 12807 | 回复: 4

mysql的select语句如何在查询过程中停止 [复制链接]

论坛徽章:
0
发表于 2009-05-12 14:14 |显示全部楼层
我有一个表有很多记录,执行select * from talbes;输出记录太多,想输出过程中停止,按什么键可以停止但不会退出mysql

论坛徽章:
9
每日论坛发贴之星
日期:2016-01-04 06:20:00数据库技术版块每日发帖之星
日期:2016-01-04 06:20:00每日论坛发贴之星
日期:2016-01-04 06:20:00数据库技术版块每日发帖之星
日期:2016-01-04 06:20:00IT运维版块每日发帖之星
日期:2016-01-04 06:20:00IT运维版块每日发帖之星
日期:2016-01-04 06:20:00综合交流区版块每日发帖之星
日期:2016-01-04 06:20:00综合交流区版块每日发帖之星
日期:2016-01-04 06:20:00数据库技术版块每周发帖之星
日期:2016-03-07 16:30:25
发表于 2009-05-12 14:34 |显示全部楼层
5.0 以后 摁 ctrl+ c 可以停止现在的操作,而不退出mysql

http://www.mysqlperformanceblog. ... lient-improvements/

论坛徽章:
0
发表于 2009-05-12 14:54 |显示全部楼层
通用ctrl+c

论坛徽章:
0
发表于 2009-05-12 15:08 |显示全部楼层
原帖由 ws00377531 于 2009-5-12 14:54 发表
通用ctrl+c

ctrl+c 直接退出mysql了

论坛徽章:
0
发表于 2009-05-12 15:16 |显示全部楼层
原帖由 cenalulu 于 2009-5-12 14:34 发表
5.0 以后 摁 ctrl+ c 可以停止现在的操作,而不退出mysql

http://www.mysqlperformanceblog. ... lient-improvements/


谢谢了,好像在linux下不行,在windows下mysql5.0以后有这个功能了

On Windows, typing Control-C while a query was running caused the mysql client to crash. Now it causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. (In other words, mysql's behavior with regard to Control-C is now the same as it is on Unix platforms.) (Bug#17926)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP