Oracle Date TO_CHAR('Month DD, YYYY') has extra spaces in it

前端 未结 6 1719
渐次进展
渐次进展 2020-12-03 10:18

When I do...

Select TO_CHAR (date_field, \'Month DD, YYYY\')
from...

I get the following:

July      01, 2011
April     01,          


        
6条回答
  •  忘掉有多难
    2020-12-03 10:47

    select to_char(sysdate, 'DD-fmMONTH-YYYY') "Date" from Dual;

    The above query result will be as given below.

    Date

    01-APRIL-2019

提交回复
热议问题