oracle 时间转换

select to_char(to_date(stp_date,'yyyy/mm/dd'),'yyyy/mm/dd hh24:mi:ss') from t_inf_blackdate

能够吧 20140102 转换为  2014/01/02 00:00:00select

to_char用法im

to_date就很随意了把时间转换为本身想要的格式img

相关文章
相关标签/搜索