IF 语句
语法结构:
IF search_condition THEN statement_list [ELSEIF search_condition THEN statement_list] ... [ELSE statement_list] END IF
解释说明
if语句实现基本的条件判断功能。如果search_condition
判断为真,将执行对应的statement_list
部分。如果没有条件符合,最后将执行ELSE
部分。每个statement_list
都由一个或者多个语句组成。
注意: IF() 函数不同于IF
语句。
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.