简体   繁体   中英

How to batch export only 10 rows from Oracle SQL developer query results for each table to separate excel files

I have 50 tables on a schema on Oracle server. Each table has roughly 1 million rows. I want to export all tables to separate excel files. I only need 10 rows for each table. I know I can select 10 rows and manually export it to excel file one by one. Is there any way to set exporting only 10 rows in Export Wizard, and export 50 tables to separate excel files in batch (automatically)? Thanks.

Tools - Database Export

在此处输入图片说明

Note the output type is set to Separate Files and we're pointing to a directory.

If you set it to a single file, you'll get one excel file with 50 worksheets.

Pick your tables, and set GLOBAL WHERE CLAUSE

Click Next, then Finish, and you're off to the races.

在此处输入图片说明

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