时分秒的问题
表中数据时间是年 月 日 时分 秒
我现在要将带23:59:59 秒的数据找出来
该这么写
[最优解释]
select * from emp where to_char(hiredate, 'hh24:mi:ss')='23:59:59';
[其他解释]
+1
发布时间: 2012-12-21 12:03:49 作者: rapoo
时分秒的问题
表中数据时间是年 月 日 时分 秒
我现在要将带23:59:59 秒的数据找出来
该这么写
[最优解释]
select * from emp where to_char(hiredate, 'hh24:mi:ss')='23:59:59';