方法一:select * from 表名 where time between to_date('2012-06-18 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2012-06-18 23:59:59','yyyy-mm-dd hh24:mi:ss');
方法二:select * from 表名 where to_char(indate,'yyyy-mm-dd')='2012-06-18';
方法三:select * from 表名 where trunc(indate)=to_date('2012-06-18','yyyy-mm-dd');
oracle 查询时间问题
最新推荐文章于 2024-04-13 10:10:58 发布