Help Center/ GaussDB/ Developer Guide(Centralized_8.x)/ FAQ/ How do I determine whether a column is null?
Updated on 2024-06-03 GMT+08:00

How do I determine whether a column is null?

Answer: Use IS NUL and IS NOT NULL to determine whether a column is null. For example:

gaussdb=#SELECT * FROM tab WHERE col1 IS NULL;