Home> Database> Oracle> body text

How to query empty fields in oracle

WBOY
Release: 2022-02-28 11:44:21
Original
9565 people have browsed it

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
Copy after login

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=''
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!