not_null_or_empty

description

Syntax

BOOLEAN NOT_NULL_OR_EMPTY (VARCHAR str)

如果字符串为空字符串或者NULL,返回false。否则,返回true。

example

MySQL [(none)]> select not_null_or_empty(null);
+-------------------------+
| not_null_or_empty(NULL) |
+-------------------------+
|                       0 |
+-------------------------+

MySQL [(none)]> select not_null_or_empty("");
+-----------------------+
| not_null_or_empty('') |
+-----------------------+
|                     0 |
+-----------------------+

MySQL [(none)]> select not_null_or_empty("a");
+------------------------+
| not_null_or_empty('a') |
+------------------------+
|                      1 |
+------------------------+
作者:超级管理员  创建时间:2023-06-14 17:44
最后编辑:超级管理员  更新时间:2024-09-05 21:06