Format sql query in TOAD 7.
Asked Answered
S

4

5

In toad's older version i can easily able to format the query in

Toad's Query editor by

  right click > Format Code. 

But in newer version of Toad 7 i can't able to find this Format option. Can any one help me from where i can Format My Query.

(how to FORMAT QUERY in TOAD 7?)

Shurwood answered 31/3, 2014 at 8:20 Comment(0)
F
19

TOAD FOR ORACLE

SHIFT+CTRL+F should help you

To format a statement Select the statement you want to select and click » on the Edit toolbar.

To format an entire script Click » on the Edit toolbar.

Tip:You can also right-click the script and select Formatting Tools | Format Code.

See the documentation

TOAD FOR MYSQL

Format SQL

Use the formatter to modify the layout of SQL in the Editor, including inserting headers, adding or removing extra lines, and changing the case for keywords.

To format SQL

Click Paint shaped box on the Editor toolbar to format the contents of the Editor window. You can also format a partial statement in the Editor by selecting it before applying formatting.

See documentation

Faradmeter answered 31/3, 2014 at 8:22 Comment(3)
this short-cut is for Find/Replace in FilesShurwood
mysql TOAD 7's Query EditorShurwood
In RIGHT CLICK Format Code option is not available. But thanks its doneShurwood
P
1

Just to add, in Toad 5 for SQLServer, the button to format code is "2 yellow triangles pointing right". In my fresh installation, this button is on the toolbar, beside the dropdown box to select the db environment.

If you want to assign a shortcut, find it at Tools | Options | Environment | Keyboard | Editor | Tools | FormatCode.

Hope it helps, it took very long to find these buttons. Wish they'd make the controls the same as Toad for Oracle..

Parabola answered 10/3, 2015 at 4:33 Comment(0)
P
1

You can format from the menu bar: Editor > Format Code > choose the exact format from the format list.
In case anyone's interested, for toad 8 for MySQL, there is an OOTB hot-key. Simply select the code you want to format, and press Alt+Ctrl+F.

Pocketbook answered 13/3, 2018 at 10:21 Comment(0)
B
0

In toad you can easily able to format the query by this shortcut ;

Toad's Query editor;

SHIFT+CTRL+F  
Bishop answered 23/8, 2019 at 8:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.