从 MySQL Workbench 中删除 limit 子句
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5185348/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Remove the limit clause from MySQL Workbench
提问by Ramy
I'm running this query: select * from schema.table
我正在运行这个查询: select * from schema.table
but i'm only getting the first 1000 rows
但我只得到前 1000 行
i see in the output window that there was a LIMIT clause appended to my select statement. Is there a way to turn off the default limit?
我在输出窗口中看到我的 select 语句附加了一个 LIMIT 子句。有没有办法关闭默认限制?
回答by John Parker
You can toggle the LIMIT clause added by MySQL Workbenchvia the SQL Editor tab within the application preferences (Edit menu -> Preferences...).
您可以通过应用程序首选项(编辑菜单 -> 首选项...)中的 SQL 编辑器选项卡切换MySQL Workbench添加的 LIMIT 子句。
Simply un-check the "Limit Rows" option within the Query Results section as pictured below.
只需取消选中查询结果部分中的“限制行”选项,如下图所示。
EDIT:
编辑:
In Workbench 6.0, the "Limit Rows" checkbox stands in "SQL Queries" tab (new tab of the same form).
在 Workbench 6.0 中,“限制行”复选框位于“SQL 查询”选项卡(相同形式的新选项卡)中。
回答by ROMANIA_engineer
MySQL Workbench 6.3
MySQL 工作台 6.3
Option 1
选项1
Query> Limit Rows> Don't Limit
查询>限制行>不限制
If you change the value here, it will also be updatedin the path achievable via the second option.
如果您更改此处的值,它也会在通过第二个选项可实现的路径中更新。
Option 2
选项 2
Edit> Preferences...
编辑>首选项...
SQL Editor> SQL Execution> uncheck Limit Rows
SQL 编辑器> SQL 执行> 取消选中限制行
If you change the value here, it won't be updatedin the path achievable via the first option, but the new value will be considered.
如果在此处更改值,则不会在通过第一个选项可实现的路径中更新,但会考虑新值。
回答by John Egbert
回答by PrasadK
In MYSQL Workbench 6.0 the option can be found at Edit->Preferences->SQL Queries tab.
在 MYSQL Workbench 6.0 中,可以在 Edit->Preferences->SQL Queries 选项卡中找到该选项。