Spec-Zone.ru › MariaDB

IF

Синтаксис

IF search_condition THEN statement_list
    [ELSEIF search_condition THEN statement_list] ...
    [ELSE statement_list]
END IF;

Описание

IF реализует базовую условную конструкцию. Если search_condition вычисляется как истина, выполняется соответствующий список операторов SQL. Если не находится ни одного совпадения с search_condition, выполняется список операторов в предложении ELSE. Каждый список операторов состоит из одного или нескольких операторов.

См. также

  • Функция IF(), которая отличается от описанного выше оператора IF.
  • Изменения в режиме Oracle начиная с MariaDB 10.3
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.

© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/if/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API