PostgreSQL空值的判断

PostgreSQL空值的判断

空值判断

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

非空判断

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

总结

相关推荐
apocelipes5 小时前
golang unique包和字符串内部化
java·python·性能优化·golang
Full Stack Developme5 小时前
java.text 包详解
java·开发语言·python
刘梦凡呀6 小时前
C#获取钉钉平台考勤记录
java·c#·钉钉
盒马coding7 小时前
第19节-非规范化数据类型-Composite-types
数据库·postgresql
best_virtuoso7 小时前
PostgreSQL 常见数组操作函数语法、功能
java·数据结构·postgresql
yudiandian20147 小时前
02 Oracle JDK 下载及配置(解压缩版)
java·开发语言
楚韵天工7 小时前
宠物服务平台(程序+文档)
java·网络·数据库·spring cloud·编辑器·intellij-idea·宠物
helloworddm7 小时前
Orleans Stream SubscriptionId 生成机制详解
java·系统架构·c#
失散137 小时前
分布式专题——43 ElasticSearch概述
java·分布式·elasticsearch·架构
ajsbxi7 小时前
【Java 基础】核心知识点梳理
java·开发语言·笔记