Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to define format of SQL sentence when I drag table name?

Blue BirdNov 1 2018 — edited Nov 1 2018

I would like to know where in SQL Dev 18.3 I can define how is formatted generated SQL statement when you drag a table from the left to the worksheet on the right side? For example if I drag table DEPT and select

pastedImage_2.png

I got this:

SELECT

DEPTNO ,

DNAME ,

LOC

FROM

DEPT ;

I would like to format my sentence like:

Select

Deptno,

Dname,

Loc

From

Dept;

The most important would be to remove extra space before comma. I was looking in the settings under Tools > Preferences > Code Editor > Format > Advanced Format, but I cannot find any line related how comma should be positioned. Are this settings related to this operation at all?

By the way I use this settings in Format one level higher and I don't want to change it:

pastedImage_5.png

Is trere some detail explanation how to format your code using Custom Format one level lower?

Thanks,

BB

This post has been answered by thatJeffSmith-Oracle on Nov 1 2018
Jump to Answer
Comments
Post Details
Added on Nov 1 2018
3 comments
268 views