Oracle SQL 从表中选择记录,其中时间戳 = 今天

bbe*_*ard 2 sql oracle timestamp

我在 oracle 中有一个表,它有一列created_ts类型timestamp(6) with timezone

我想选择created_ts>= 今天的记录。因此,例如,如果我今天 (2/20/17) 运行查询,我希望 created_ts 更新或等于 02-20-2017 00:00:00 的所有记录。

我已经看到date使用对列执行此操作的示例trunc(sysdate),但还没有看到如何使用时间戳 + 时区列执行此操作。

谢谢

Gor*_*off 7

我想你想要:

where created_ts >= trunc(current_timestamp)
Run Code Online (Sandbox Code Playgroud)