view

it2022-05-08  8

create view view_baseInfo as select c.spbh,c.tongym, c.spmch,c.shpgg,c.shpchd,a.pihao,a.pici,a.sxrq,a.baozhiqi,c.dw, a.rq as rkrq,d.danwbh as rkdwbh,convert(char(50),ltrim(rtrim(d.dwmch))) as rkdwmch,e.bm as rkbm,e.ywy as rkywy,a.djbh as rkdjbh, a.hshj as rkhshj,a.shlv as rksl,a.shl as rkshl,a.hsje as rkje, b.rq as ckrq,d.danwbh as ckdwbh,convert(char(50),ltrim(rtrim(g.dwmch))) as ckdwmch,f.bm as ckbm,f.ywy as ckywy, b.djbh as ckdjbh,b.hshj as ckhshj,b.shlv as cksl,b.shl as ckshl,b.hsje as ckje from ksoa.dbo.jh_rkmx a,ksoa.dbo.pf_ckmx b,ksoa.dbo.spkfk c,ksoa.dbo.mchk d,ksoa.dbo.jh_rkhz e,ksoa.dbo.pf_ckhz f,ksoa.dbo.mchk g where a.pici=b.pici and a.spid=c.spid and b.pici<>'' and a.djbh=e.djbh and b.djbh=f.djbh and e.dwbh=d.dwbh and f.dwbh=g.dwbh

转载于:https://www.cnblogs.com/CandiceW/p/4204539.html


最新回复(0)