SQL:
select rownum,RWID,GZNR,to_char(JHKSRQ,'yyyy-MM-dd') as JHKSRQ ,to_char(JHJSRQ,'yyyy-MM-dd') as JHJSRQ,JXBM,FZR
FROM TAB_JHRW
结果:
作用:
将年月日时分秒,转化为年月日!
注意:
JHKSRQ和JHJSRQ在oracle中都为date类型
SQL:
select rownum,RWID,GZNR,to_char(JHKSRQ,'yyyy-MM-dd') as JHKSRQ ,to_char(JHJSRQ,'yyyy-MM-dd') as JHJSRQ,JXBM,FZR
FROM TAB_JHRW
结果:
作用:
将年月日时分秒,转化为年月日!
注意:
JHKSRQ和JHJSRQ在oracle中都为date类型