select
1 as fld_TM_cartons ,
TO_CHAR(SYSDATE+1,'MONTH/DD/YYYY') as fld_TMD_order_no,
nvl(ps.wmps_grossweight,0)as grossweight ,
nvl(ps.wmps_cubic,0)
from 表
我要在select里面加一列显示当前系统日期 格式是“July 07 2014 05:39AM_BWB_Manifest
” 这个样式应该怎么写?要求 月要用英文显示,然后 要显示出AM/PM,在AM/MP后面还要加_BWB_Manifest这写字符。
求指导。
------解决方案--------------------
select to_char(sysdate,'Month dd yyyy hh:miAM')
------解决方案--------------------
'BWB_Manifest' from dual;
------解决方案--------------------
to_char(sysdate, 'Mon DD YYYY HH:MIAM','NLS_DATE_LANGUAGE=''AMERICAN''')
------解决方案--------------------
'_BWB_Manifest'
加个参数,确保月份不会以中文显示