How to check if oracle is not equal to 1

The null value null is special. It cannot be queried by = or, but can only be queried by is null or is not null. For example, if there is a null value in your data, then use field name=1, field name 1, field name=null This data cannot be retrieved, only the field name is null can be retrieved.
So there are two types of data you need to query, null, or not equal to 1, converted to sql is
select * from table where field name is null or fieldname1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326449263&siteId=291194637