Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASE WHEN dont have a line break #83

Open
morphiaz opened this issue Sep 26, 2015 · 1 comment
Open

CASE WHEN dont have a line break #83

morphiaz opened this issue Sep 26, 2015 · 1 comment

Comments

@morphiaz
Copy link

having something like this:

CASE
WHEN ...
WHEN ...
WHEN ...
THEN ...

is not creating a line break after each WHEN command. right now its beiing displayed like this:

CASE WHEN ... WHEN ... WHEN ... THEN ...

With a lot of CASEs, this is getting difficult.

@JannemanDev
Copy link

To be more precise, syntax is a bit different:
https://www.techonthenet.com/oracle/functions/case.php
https://www.techonthenet.com/sql_server/functions/case.php
https://www.techonthenet.com/mysql/functions/case.php

For example:

SELECT plantname,
       CASE price
         WHEN 1 THEN 'Cheap'
         WHEN 2 THEN 'Expensive'
         ELSE 'Unknown'
       END
FROM plant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants