字符串转日期

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';

 

你可能感兴趣的:(字符串转日期)