TO_CHAR:
TO_CHAR(date,’fmt’):fm前缀用来去除首尾的空字符或0
TO_CHAR(total,’fm$999999’)
如果想转成$0.25,那就要写成fm$9999990.99
可以把日期转换成字符
TO_CHAR(log_time,’MM/YY’)
TO_CHAR(lot_time,’fmdd’’of;’’mm yyyy’)
具体格式如下
HH24:MI:SS AM-----------15:24:32 pm
DD’’of’’MONTH-----------12 of MAY
Ddspth------------------------fourteenth
Ddsp--------------------------fourteen
ddth---------------------------4th
YYYY-----------------------1978
MM-----------------------------12
MONTH-------------------------MAY
TO_CHAR(date,’fmt’):fm前缀用来去除首尾的空字符或0
TO_CHAR(total,’fm$999999’)
如果想转成$0.25,那就要写成fm$9999990.99
可以把日期转换成字符
TO_CHAR(log_time,’MM/YY’)
TO_CHAR(lot_time,’fmdd’’of;’’mm yyyy’)
具体格式如下
HH24:MI:SS AM-----------15:24:32 pm
DD’’of’’MONTH-----------12 of MAY
Ddspth------------------------fourteenth
Ddsp--------------------------fourteen
ddth---------------------------4th
YYYY-----------------------1978
MM-----------------------------12
MONTH-------------------------MAY