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

相關文章
相關標籤/搜索