- Notifications
You must be signed in to change notification settings - Fork689
Mathias Rangel Wulff edited this pageJul 1, 2015 ·4 revisions
Conditional statement.
Syntax:
IF expression THEN statement1 [ELSE statement2]
See also:CASE
You can use the MySQL notation
SELECT IF(1>2,2,3); -> 3or the MsSQL notation
SELECT IIF(1>2,2,3); -> 3to get one out of two values.
© 2014-2026,Andrey Gershun &Mathias Rangel Wulff
Please help improve the documentation by opening a PR on thewiki repo