【发布时间】:2013-01-07 06:33:51
【问题描述】:
我想要所有存在于特定日期时间戳和表 create_datetime 列之外的记录。
运行此查询时,它应该提供大于 create_datetime 的当天的所有记录,具体时间为 18:00:00
【问题讨论】:
-
您能否提供带有一些测试数据输入和预期输出的示例表定义?
-
select * from table where create_date_time > to_date('date_here'||18:00:00, 'dd-mon-yyyy hh24:mi:ss';其中date_here是您的输入日期,格式为dd-mon-yyyy。这个问题很基础。
标签: sql oracle date-arithmetic sysdatetime