摘要: Oracle 查询今日、昨日、本周、本月和本季度的所有记录 字段类型为date 今日 select * from 表名 where to_char(字段名,'dd')=to_char(sysdate,'dd') 昨日 select * from 表名 where to_char(字段名,'dd')= to_char(sysdate-1,'dd') 本周 select * from 表名 ... 阅读全文
posted @ 2019-07-29 17:22 算命先生 阅读(3122) 评论(1) 推荐(0) 编辑