oracle怎么查询空字段
在oracle中,可以利用select查询语句配合“is”和“NULL”关键字来查询空字段,NULL关键字用于表示空字段,语法为“select * from 表名 where 字段名 is NULL”。

本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。
oracle怎么查询空字段
oracle查询为空的数据
where 字段名 is NULL

为空的属于特殊值,这样的语句查不出
select gysname,gysdl,gysxl from formtable_main_674 where gysdl=1 and gysxl=''

Browse AI
AI驱动的网页内容抓取和数据采集工具
105
查看详情
这情况我们用is来查询
select gysname,gysdl,gysxl from formtable_main_674 where gysdl=1 and gysxl is null

推荐教程:《Oracle视频教程》
以上就是oracle怎么查询空字段的详细内容,更多请关注其它相关文章!
