简体   繁体   中英

Exporting Data - IBM Data Studio DB2

I am trying to export a large query from a DB2 database to a text file on my desktop using IBM Data Studio and I can't seem to get anything to work. When I run the query and right click on the results tab->Export->All Results it only gives me the first 500 records. This table is going to be in the range of 15 MM records so I can't just change the display settings to allow it to display that many records. I cannot use the unload utility because it won't let me save the file to my desktop. Any ideas?

Probably, the limit in the SQL Results is activated.

You should click in the upper left triangle in the "SQL results" view, then "Preferences...".

在此处输入图片说明

However, this is not a good way to export data, because you should fetch them into Data Studio and then export them via the GUI. It is better to use the "export" command.

IN the IBM Data Studio:

right click the table/view and ---->Data-----> Extract and Browse destination to drop the file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM