to_date('时间类型字段','格式')
如:select to_date(sysdate,'yyyy-MM-DD HH24:MI:ss') from dual
扩展:通过身份证得到出生日期
select to_date(substr(IDCARD,7,8),'yyyy-MM-DD') from CHECKIN_INFO where STATE = '0'
to_date('时间类型字段','格式')
如:select to_date(sysdate,'yyyy-MM-DD HH24:MI:ss') from dual
扩展:通过身份证得到出生日期
select to_date(substr(IDCARD,7,8),'yyyy-MM-DD') from CHECKIN_INFO where STATE = '0'