0
select c.status from Table c where c.id = 13513 and status != false;
true
true
但是沒有得到空值。我想得到這樣的價值和haw得到?如何獲取JPA查詢中的所有非錯誤值?
true
true
null
select c.status from Table c where c.id = 13513 and status != false;
true
true
但是沒有得到空值。我想得到這樣的價值和haw得到?如何獲取JPA查詢中的所有非錯誤值?
true
true
null
我沒有太多的去與你給的範圍內,但試試這個:
select c.status from Table c where c.id = 13513 and (status != false or status is null);
如果還是不行,請把你的表模式,最好是一數據表示包含您正在尋找的「null」。
看起來很接近,加了一些括號 – 2014-11-04 09:22:01