#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
IS NOT NULL
在WHERE子句中查找为NULL值的字段。
例如,列出表customer_t1中c_customer_id不为空值的字段。
openGauss=# SELECT * FROM customer_t1 WHERE c_customer_id IS NOT NULL;
c_customer_sk | c_customer_id | c_first_name | c_last_name | amount
---------------+---------------+--------------+-------------+--------
3869 | hello | Grace | | 1000
3869 | hello | | |
6985 | maps | Joes | | 2200
9976 | world | James | | 5000
4421 | Admin | Local | | 3000
(5 rows)
#openGauss #入门 #安装 #数据库 #开源