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

oracle中查找某个时间段内的数据

2015-06-26 14:04 656 查看
例子:

1)select * from tableName t where start_times > to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss');

2)select * from tableName t where start_times < to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss');

3)select * from tableName t where start_times between to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss') and to_date('2015/6/26 11:00:00','yyyy/mm/dd hh24:mi:ss');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sql oracle