NVL
nvl
nvl
description
Syntax
nvl(expr1, expr2)
如果 expr1 的值不为 NULL 则返回 expr1,否则返回 expr2
example
mysql> select nvl(1,0);
+--------------+
| nvl(1, 0) |
+--------------+
| 1 |
+--------------+
mysql> select nvl(null,10);
+------------------+
| nvl(NULL, 10) |
+------------------+
| 10 |
+------------------+
keywords
NVL