SQL Notebook (logo)

IF Statement

Takes one code path or the other based on an SQL expression. The condition expression must evaluate to the integer 0 or 1.

Syntax

Syntax for the IF statement

Arguments

Examples