如何在Oracle SQL Developer标准版2中实现多查询分标签页输出结果?
Can I run 20 separate queries in Oracle SQL Developer Standard Edition 2 and get each result in its own tab?
Absolutely! You can absolutely execute 20 distinct queries in Oracle SQL Developer Standard Edition 2 and have each result set open in its own dedicated tab—this is a core feature designed to streamline testing workflows like yours. Here’s how to do it efficiently:
Two Methods to Get Per-Query Tabs
Method 1: Batch Run with "Run Statement"
- Open a new SQL Worksheet and paste all 20 of your queries into it, making sure each query ends with a semicolon (
;). - Select all the queries (you can use
Ctrl+Afor this). - Press
Ctrl+Enter(or click the "Run Statement" button in the toolbar). SQL Developer will automatically execute each query sequentially and open a new results tab for every single one. The tabs will default to names based on the start of your query, but you can rename them by right-clicking the tab if needed.
Method 2: Adjust Preferences for Consistent Tab Behavior
If you find results are merging into a single tab by default, tweak this setting to ensure per-query tabs every time:
- Go to Tools > Preferences > Database > Worksheet.
- Look for the option labeled something like "Automatically open new tabs for each executed statement" (the exact wording might vary slightly between versions) and check the box.
- Click "OK" to save the preference. Now any batch of queries you run with "Run Statement" will split results into separate tabs.
A quick note: If your queries include bind variables or require unique configurations per query, you can also open 20 separate SQL Worksheet windows, but the batch method above is far more time-efficient for straightforward testing queries.
内容的提问来源于stack exchange,提问作者RaxitAlphaLogic
相关产品推荐
相关产品推荐

