Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run 2 queries at the same time on Oracle SQL Developer?

I need to retrieve quite a bit of data from our oracle DB and to do so I need to run 20+ queries. Is there any way to run more than one query at a time on the same connection?

I tried using / to separate the queries, but that simply opens multiple tabs and queries still run sequentially, although I don't have to start them one by one.

like image 863
Sologoub Avatar asked Jul 13 '10 13:07

Sologoub


People also ask

Can I run 2 SQL queries at once?

You can include multiple SQL statements on the SQL query panel. The exceptions are CALL and CREATE PROCEDURE statements. These statements must be used alone in a query.

How do I run multiple SQL statements in PL SQL Developer?

The SQL Window and the Command Window are able to run multiple statements. If you need to run this in a Test window, you can embed it in a begin.. end block to make it a PL/SQL statement block. The Command Window works, as it will just accept a giant batch of SQL, pasted in, as if I'd typed out every line.

How do you run two queries?

Simply put three queries one after the other in a . sql file, with semi-colons after each statement, then execute it as a script (either on a SQL*Plus prompt using @scriptname. sql or in TOAD/SQL Developer [or equivalent] using its script execution function).


1 Answers

Pressing ctrl+shift+N will open a new unshared worksheet that can run queries in parallel. In that case you have to paste a query in each tab and run them manually though, but it is handy when just testing a few queries.

like image 131
wds Avatar answered Sep 25 '22 19:09

wds