There was an error while loading. Please reload this page.
IF
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.
Quick links
AlaSQL wiki frontpage
About AlaSQL
Install AlaSQL
Get started with AlaSQL