Postgresql Postgres-与空时间戳比较
嗨,这不是一个真正的问题,我只是想了解为什么: 在研究生9Postgresql Postgres-与空时间戳比较,postgresql,timestamp,Postgresql,Timestamp,嗨,这不是一个真正的问题,我只是想了解为什么: 在研究生9 this_.lastModified<=NULL this.lastModifiedthis.lastModifiedNo它不“计算为true”。它的计算结果为“未知”。您必须向我们展示您正在使用的完整查询,以便我们能够理解为什么您认为它的计算结果为true。为什么您认为它的计算结果为true?您能给出一个您认为其计算结果为真的示例行吗? select this_.* from Entity this_ inner join
this_.lastModified<=NULL
this.lastModifiedthis.lastModifiedNo它不“计算为true”。它的计算结果为“未知”。您必须向我们展示您正在使用的完整查询,以便我们能够理解为什么您认为它的计算结果为true。为什么您认为它的计算结果为true
?您能给出一个您认为其计算结果为真的示例行吗?
select
this_.*
from Entity this_
inner join DEntity d2_ on this_.device=d2_.id
inner join u u1_ on this_.learner=u1_.userID
inner join LMEntity m3_ on this_.method=m3_.id
where u1_.userID='XXXX' and not (d2_.hardwareID='muh' and this_.timestamp='2013-08-02 00:00:00' and m3_.id=0 and this_.lastModified<=NULL)
where u1_.userID='XXXX' and not (d2_.hardwareID='muh' and this_.timestamp='2013-08-02 00:00:00' and m3_.id=0 and null)
d2_.hardwareID='muh' and this_.timestamp='2013-08-02 00:00:00' and m3_.id=0
where u1_.userID='XXXX' and not (true and null)
where u1_.userID='XXXX' and not null
where u1_.userID='XXXX' and null
where u1_.userID='XXXX' and not (d2_.hardwareID='muh' and this_.timestamp='2013-08-02 00:00:00' and m3_.id=0 and this_.lastModified<=NULL)