Judgment of PostgreSQL null value

Judgment of PostgreSQL null value

Null value judgment

-- 查询为空的 is null,sql简写isnull
select * from employees where manager_id isnull;
select * from employees where manager_id is null;

non-null judgment

-- 查询不为空的 is not null;sql简写notnull
select * from employees where manager_id is not null;
select * from employees where manager_id notnull;

Summarize

insert image description here

Guess you like

Origin blog.csdn.net/Java_Fly1/article/details/132351318