草庐IT

oracle 选择查询以获取最近 30 天的记录,不带时间戳,不应使用 trunc

oracleselectquerytofetchrecordsoflast30dayswithouttimestampandnotruncshouldbeusedoracleselect查询获取最近30天没有时间戳的记录,不应该使用trunc函数1select*fromtablewhereenterdatebetweentodaydateandlast30daybefore我用过selectsysdate,(sysdate-30)fromdual;但时间戳正在考虑中,但我只想考虑日期如果我使用trunc((sysdate)-30)-6),这个trunc函数会在执行过程中降低性能以获取更多记录因