日期:2014-05-17  浏览次数:20725 次

时分秒的问题
表中数据时间是年 月 日 时分 秒 
我现在要将带23:59:59 秒的数据找出来
该这么写
------最佳解决方案--------------------
select * from emp where to_char(hiredate, 'hh24:mi:ss')='23:59:59';

------其他解决方案--------------------
引用:
SQL code?



1

select * from emp where to_char(hiredate, 'hh24:mi:ss')='23:59:59';

+1