Quantcast
Channel: formatter | ThatJeffSmith
Viewing all articles
Browse latest Browse all 19

And…? Formatting in Version 4.2

$
0
0

“I do not want a line break after the and statement.”

I’ve seen this come up a few times, so let’s answer that right now.

SELECT 1 FROM dual
WHERE 1=2 AND
2=3 AND 3=4

Default formatting changes that to

SELECT 1
FROM dual
WHERE 1 = 2
    AND
        2 = 3
    AND
        3 = 4

This is NOT what the person asking for help wants.

To the Preferences!

Boolean connector….an AND or OR for example

So let’s change that and see what happens.

And…

Or…

Ta-da.

Speaking of OR

Don’t use my code, it’s worthless.


Viewing all articles
Browse latest Browse all 19

Trending Articles