最近24小时:
Where publish_date >= sysdate -1
或今天的任何时间(午夜向前)
where publish_date >= trunc(sysdate)
如果这是一个大表,则假定您在publish_date上有一个索引。如果您使用trunc(publish_date),则它可能无法使用索引(未经测试,但请确保运行说明计划)。

最近24小时:
Where publish_date >= sysdate -1
或今天的任何时间(午夜向前)
where publish_date >= trunc(sysdate)
如果这是一个大表,则假定您在publish_date上有一个索引。如果您使用trunc(publish_date),则它可能无法使用索引(未经测试,但请确保运行说明计划)。