字符串转日期

1.字符串转日期类型

delete from  EA_ATTENDANCE_TIME a where a.eat_workdate = to_date('2016-02-22','yyyy-mm-dd') and a.eat_employeeid='990207400000';

2.日期转字符串类型

select * from  EA_ATTENDANCE_TIME a where to_char(a.eat_workdate,'YYYY-mm-dd') = '2016-03-08';

3.有时分秒的

select to_date('2005-01-01 13:14:20','yyyy-MM-dd HH24:mi:ss') from dual; 

 

猜你喜欢

转载自577439237.iteye.com/blog/2281103
今日推荐