简体   繁体   中英

Oracle SQL Multi Column <> Null Select

SELECT * 
FROM GNGRB.LOAN 
WHERE LOAN, INTRST, RATE IS NOT NULL 
ORDER BY LOAN DESC;

Please identify the error in this query.

SELECT * 
FROM GNGRB.LOAN 
WHERE LOAN IS NOT NULL
  AND INTRST IS NOT NULL
  AND RATE IS NOT NULL 
ORDER BY LOAN DESC;

I can see loan , interest and rate is all number data type values, you can use + as follows:

Select * from your_table t
 Where loan + interest + rate is not null

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM