IF search_condition THEN statement_list [ELSEIF search_condition THEN statement_list] ... [ELSE statement_list] END IF;
IF implements a basic conditional construct. If the
evaluates to true, the corresponding SQL statement list is executed.
search_condition matches, the statement list in the
is executed. Each statement_list consists of one or more statements.