Oracle SQL 多列 <> 空值 Select
Oracle SQL Multi Column <> Null Select
SELECT *
FROM GNGRB.LOAN
WHERE LOAN, INTRST, RATE IS NOT NULL
ORDER BY LOAN DESC;
请指出此查询中的错误。
SELECT *
FROM GNGRB.LOAN
WHERE LOAN IS NOT NULL
AND INTRST IS NOT NULL
AND RATE IS NOT NULL
ORDER BY LOAN DESC;
可以看到loan
、interest
和rate
都是number
数据类型值,可以用+如下:
Select * from your_table t
Where loan + interest + rate is not null
SELECT *
FROM GNGRB.LOAN
WHERE LOAN, INTRST, RATE IS NOT NULL
ORDER BY LOAN DESC;
请指出此查询中的错误。
SELECT *
FROM GNGRB.LOAN
WHERE LOAN IS NOT NULL
AND INTRST IS NOT NULL
AND RATE IS NOT NULL
ORDER BY LOAN DESC;
可以看到loan
、interest
和rate
都是number
数据类型值,可以用+如下:
Select * from your_table t
Where loan + interest + rate is not null