您的位置:首页 > 数据库 > Oracle

Oracle中查询某个时间段的记录时,sql的写法 between and

2017-01-18 14:18 316 查看
select * from Oracle.alarmLog
where alarmtime between to_date('2007-03-03 18:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2007-09-04 18:00:00','yyyy-mm-dd hh24:mi:ss')

select * from crpay.CREDIT_MIX t where t.create_time between to_date('2017/01/18 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2017/01/19 00:00:00','yyyy-mm-dd hh24:mi:ss')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: