时间:2021-07-01 10:21:17 帮助过:4人阅读
select zxmid,row_number() over(order by xm.zzjgfhid,zxmmc) as xh,zxm.xmid,xmmc,zxmmc,htzj,zxm.fzrid,rs.ygmc, case flag when ‘0‘ then ‘启用‘ else ‘未启用‘ end flag,zxm.bz from jc_xmzxmb zxm left join v_jc_xmzzjg xm on zxm.xmid=xm.xmid left join rs_ygjbxxb rs on zxm.fzrid=rs.ygid
sql中查询中的when...then 语句
标签: