我想从 6 月(2017 年 6 月 1 日至 6 月 30 日)的 Oracle 表中选择一些数据,开始日期将从明天(9 月 13 日)开始。因此我用以下格式写了一个查询,
select * from table where column1='Data1' and Column2='Data2'
and trunc(DateTime) between trunc(sysdate-104) and trunc(sysdate-75)
我无法检查此查询,因为我没有用于此的工具。我只是在记事本上写的,想分享给我的朋友。
我的问题 -trunc(DateTime) between trunc(sysdate-104) and trunc(sysdate-75)
条件会在 June1st 到 June31 之间提供数据还是那里有任何语法问题?