-
Notifications
You must be signed in to change notification settings - Fork 664
Mathias Rangel Wulff edited this page Jul 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);
-> 3
or the MsSQL notation
SELECT IIF(1>2,2,3);
-> 3
to get one out of two values.
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo