Skip to content

Commit cdafb7d

Browse files
Add CASE expression documentation
1 parent 93fc505 commit cdafb7d

File tree

5 files changed

+638
-0
lines changed

5 files changed

+638
-0
lines changed

docs/sphinx/source/reference/sql_commands/DQL.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Syntax
2121
DQL/SELECT
2222
DQL/WITH
2323
DQL/WHERE
24+
DQL/CASE
2425
DQL/EXPLAIN
2526

2627
.. toctree::
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Diagram(
2+
Terminal('CASE'),
3+
Optional(NonTerminal('expression')),
4+
OneOrMore(
5+
Sequence(
6+
Terminal('WHEN'),
7+
NonTerminal('condition'),
8+
Terminal('THEN'),
9+
NonTerminal('result')
10+
)
11+
),
12+
Optional(
13+
Sequence(
14+
Terminal('ELSE'),
15+
NonTerminal('result')
16+
)
17+
),
18+
Terminal('END')
19+
)

0 commit comments

Comments
 (0)