oracle 增加 SQL Developer 导出中的行数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28806785/
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
Increase number of rows in SQL Developer export
提问by Mark
I'm running a SQL script in SQL Developer and wanting to export all the records it returns to a CSV file, roughly a few hundred thousand results.
我在 SQL Developer 中运行一个 SQL 脚本,并希望将它返回的所有记录导出到一个 CSV 文件中,大约有几十万个结果。
Currently SQL Developer limits the number of rows it returns to 50.
目前 SQL Developer 将它返回的行数限制为 50。
I've tried the following to fix this:
我尝试了以下方法来解决这个问题:
- Increasing SQL array fetch size (I receive a protocol[0] error)
- Increasing max rows to print to script (made no difference)
- Increasing the max lines in script output (made no difference)
- 增加 SQL 数组提取大小(我收到协议 [0] 错误)
- 增加打印到脚本的最大行数(没有区别)
- 增加脚本输出中的最大行数(没有区别)
Code I'm using is as follows:
我正在使用的代码如下:
var UWY varchar2(20);
var SHOWS_AT_DATE_DD_MON_YY varchar2(30)
exec :UWY := '2012';
exec :SHOWS_AT_DATE_DD_MON_YY := '31-dec-2014';
SPOOL "c:\act-2012.csv";
/* select statement */
SPOOL OFF;
采纳答案by Mark
I managed to resolve this issue by doing the following.
我通过执行以下操作设法解决了这个问题。
Running the script in SQL Developer (F5), then in the Query result window right clicking and pressing export and then following the instructions on screen.
在 SQL Developer (F5) 中运行脚本,然后在查询结果窗口中右键单击并按导出,然后按照屏幕上的说明进行操作。
Even though the query window only returned 50 results it exported all the results returned by the query.
即使查询窗口只返回 50 个结果,它也导出了查询返回的所有结果。
回答by Kyle J
Go to Preferences-> Database->Worksheet and you can change the limits there.
转到首选项-> 数据库-> 工作表,您可以在那里更改限制。
回答by user7067194
Go to
去
Preferences-> Database-> Advanced -> increase the Sql Array Fetch Size
Preferences-> Database-> Advanced -> 增加Sql Array Fetch Size
The max you can select here is 500, if you need more that you will have to export the results.
您可以在此处选择的最大值为 500,如果您需要更多,则必须导出结果。