Print Thread
Execute only one query in SQL window without selecting its text
#46676 04/02/13 07:38 AM
Joined: Apr 2013
Posts: 4
R
Member
OP Offline
Member
R
Joined: Apr 2013
Posts: 4
Hi there!

In SQL DEveloper If you write several queries in a worksheet and separate then with semicolons you can execute different queries one at the time just pointing the cursor at them (not selecting SQL statement).
Is there any way to execute exactly on query in SQL Window (if there are multiple) without selecting the query text?

Thanks!

Last edited by Ruslan Kutdyusov; 04/02/13 07:48 AM.
Re: Execute only one query in SQL window without selecting its text
Ruslan Kutdyusov #46680 04/02/13 10:31 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
This is indeed possible. There are 2 options:
  1. Press Ctrl-F8 when the cursor is on the statement. Now only the current statement is executed. You can assign a different key through the preferences (Tools > Preferences > Key Configuration > "SQL Window: Execute current statement").
  2. Enable the "AutoSelect statement" preference (Tools > Preferences > SQL Window). Now the standard execute function will automatically select the current statement under the cursor and execute it. To execute multiple statements you now have to explicitly select them first in the editor, or use Ctrl-F8.


Marco Kalter
Allround Automations
Re: Execute only one query in SQL window without selecting its text
Marco Kalter #46683 04/02/13 11:09 AM
Joined: Apr 2013
Posts: 4
R
Member
OP Offline
Member
R
Joined: Apr 2013
Posts: 4
Thank you. This will really help me.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.135s Queries: 15 (0.016s) Memory: 2.5022 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-05 19:47:31 UTC
Valid HTML 5 and Valid CSS