Home >Database >Oracle >How to query empty fields in oracle

How to query empty fields in oracle

WBOY
WBOYOriginal
2022-02-28 11:44:219720browse

In Oracle, you can use the select query statement with the "is" and "NULL" keywords to query empty fields. The NULL keyword is used to represent empty fields. The syntax is "select * from table name where field name. is NULL".

How to query empty fields in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to query empty fields in oracle

Oracle queries empty data

where 字段名 is NULL

How to query empty fields in oracle

Empty fields are special values. This statement checks If

select gysname,gysdl,gysxl from formtable_main_674 where    gysdl=1 and gysxl=''

How to query empty fields in oracle

happens, we use is to query

select gysname,gysdl,gysxl from formtable_main_674 where    gysdl=1 and gysxl is null

How to query empty fields in oracle

Recommended tutorial: "Oracle Video Tutorial

The above is the detailed content of How to query empty fields in oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn