回覆列表
  • 1 # 指尖時

      number型別的to_char是這麼用的select to_char( 20150628 ,"9,999,999") from dual

      要實現你要的結果,必須這麼寫

      select to_char(to_date( "20150628" ,"yyyymmdd"),"yyyy/mm/dd") from dual

      把"2010052" 換成你欄位I_Appr_Date就可以了.

      select to_char(to_date(col,"yyyy/mm/dd"),"yyyy/mm/dd") from tb

      下面是例子 :

      SQL> select to_date(20100628,"yyyy/mm/dd") from dual

      2 /

      TO_DATE(201006

      28-6月 -15

      SQL> select to_char(to_date(20100628,"yyyy/mm/dd"),"yyyy/mm/dd") from dual;

      TO_CHAR(TO

      2015/06/28

  • 中秋節和大豐收的關聯?
  • 小鴨洗衣機不能洗衣物了只能甩幹?