使用hibernate的createSQLquery 处理oracle数据库的时间问题
from PosMachine where 1=1 and pid not in (select posId from PosContentRecord where to_date
('2009-07-19 19:47:29','yyyy-mm-dd hh24:mi:ss')- to_date
(to_char(contectDate,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')<0)
and posId in (select pid from PosMachine where posidNumber>=0 and posidNumber<= 999
and posidQz='A')