Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql Postgres-与空时间戳比较_Postgresql_Timestamp - Fatal编程技术网

Postgresql Postgres-与空时间戳比较

Postgresql Postgres-与空时间戳比较,postgresql,timestamp,Postgresql,Timestamp,嗨,这不是一个真正的问题,我只是想了解为什么: 在研究生9 this_.lastModified<=NULL this.lastModifiedthis.lastModifiedNo它不“计算为true”。它的计算结果为“未知”。您必须向我们展示您正在使用的完整查询,以便我们能够理解为什么您认为它的计算结果为true。为什么您认为它的计算结果为true?您能给出一个您认为其计算结果为真的示例行吗? select this_.* from Entity this_ inner join

嗨,这不是一个真正的问题,我只是想了解为什么:

在研究生9

this_.lastModified<=NULL

this.lastModified
this.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)