NVL2()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
EXAMPLES
SELECT NVL2(10,5,20);
+---------------+
| NVL2(10,5,20) |
+---------------+
| 5 |
+---------------+
SELECT NVL2(10>20,'YES','no');
+------------------------+
| NVL2(10>20,'YES','no') |
+------------------------+
| YES |
+------------------------+
SELECT NVL2(NULL,'YES','no');
+-----------------------+
| NVL2(NULL,'YES','no') |
+-----------------------+
| no |
+-----------------------+