sql转码
select
bzj,
sqid,
zcslh,
qymc,
sbcpmc,
TO_CHAR(TO_DATE(tzsj, 'yyyymmdd'), 'yyyy-mm-dd') AS tzsj,
TO_CHAR(TO_DATE(zxzsj, 'yyyymmdd'), 'yyyy-mm-dd') AS zxzsj,
gzr,
case when sfcxc ='1' then '是'
when sfcxc ='2' then '否' end as sfcxc,
case when sfsycxylqx ='1' then '是'
when sfsycxylqx ='2' then '否' end as sfsycxylqx,
TO_CHAR(TO_DATE(jssj, 'yyyymmdd'), 'yyyy-mm-dd') AS jssj
from xzxk_ylqx_txkhbl
梅花香自古寒来