Oracle SQL Developer does not show the grids in the query result - oracle-sqldeveloper

When executing a query on Oracle SQL Developer the result is text rather than a grid. I'd like it to display a grid, but I do not know how to display them.

That's because you're pressing F5, which is "Run Script" command.
You need to press green triangle at the top, or CTRL+Enter shortcut.

Related

Eclipse: Select text a column-based block via shortcut?

I am looking for a shortcut in eclipse to select which I have already used in IAR Embedded Workbench but I didn't find it in Eclipse.
briefly shortcut explained in Iar's doc and looks like in the gif below:
To select text, press Shift and the corresponding command for moving
the insertion point. In addition, this command is available:
A column-based block: Shift + Alt + Arrow key
Use Alt-Shift-A to start block selection. Then use Shift+arrows to select an aligned column as in your example. Once you use Alt-Shift-A again, the selection mode goes back to normal.

How minimize the output window in Oracle SQL Developer

How to minimize & maximize the output window in Oracle SQL Developer (the equivalent to ctrl + r in SSMS)
Is there any option available in SQL Developer?
In SQL Developer 17.4 (I believe in other recent versions too), when you run a query, the result is displayed in the "Query Result" window.
Right above the green arrow (which is displayed as the tab icon), in the upper left corner of the "Query Result" window, you'll notice two small black triangles, pointing up (maximize) and down (minimize). These two are what you're looking for.

Column editor in Oracle Sql Developer

Anyone knows if there is a column editor function in Oracle SQL Developer?
I have to modify the same column in a large number of insert statement and it would be really useful to have a column editor.
To explain better which is my problem i am searching a function similar to Eclipse ones when you type Alt + Shift + A (How do I enable the column selection mode in Eclipse?), and it allow you to edit in one time a lot of columns.
There is something similar or i have to do it manually?
I am using 4.1.5.21 version.
Thanks
If you're using a newer version of Oracle Sql Developer (at least 18.3.x but perhaps before) there is an even easier way.
Simply go to the "Edit" menu and then choose "Block Selection":
Edit/Wrap Selection (enable it):
https://www.thatjeffsmith.com/archive/2012/07/how-to-block-select-text-in-oracle-sql-developer/
Just press Shift and move cursors up and down, etc.
Be careful to press Esc after each edition as it seems to "stick" or something and it keeps adding cursors and modifying where you don't expect it.
Trick: The multi-cursor is useful to edit several parts in the same line.

Automatic Code Identation

I have a huge code and now for testing purpose I have to add that whole script into an infinite while loop is there any short way (without pressing space for each row) to add a space for indentation so the whole code is consider part of the one while loop ? Such as for example when we press ctrl +r it comments out the line
Ctrl-I/Cmd-I will automatically indent the file. Other wse you just select multiple row and use Tab/Shift-Tab to move them backwards and forwards.
For indentation is a must, however Matlab as a language does not care so it is not really a must to indent it. Additionally, you can just execute the code from the command line, say that you script or function is called Umar, then from the command line you just type while 1, Umar; end.
You can copy the code into notepad++.
Activate Column mode selection holding alt+shift and use the mouse to select the column of all the text you want to insert a space/tabulation/etc. and just insert it.
Final step is to copy back the code to matlab.
Matlab does not currently support column selection.
MATLAB has the option to select all your code, then press the right click and select smart indent button.
If you like to use shortcuts, just type the combination of Ctrl+A (select all) followed by Ctrl+I (smart indent)

Oracle Developer Script Output

I read the answer earlier pertaining to my problem but it doesn't solve it. If I run a simple query to view a table, the script output would be in real time, it would come in line by line. I had it in a grid format but can't seem to get it back
At the top menu bar of your sql developer you have the first big green arrow "run statement", and next to it a document with a smaller green arrow, "Run script". The "run statement" should produce the grid view, while the "run script" will do the unformatted line by line view.
So sounds like you should be clicking the "run statement" instead, or you could just press "control-enter" on your query.