insert into dbm.xsqfmd(id,xh,qfzt,qfje)
select s_is.nextval,b.* from(
select xh,sum(qjje) as qfje,case when sum(qjje)>0 then 1 else 0 end as qfzt from dbm.xsjfxxl group by xh) b
insert into select
最新推荐文章于 2024-02-20 10:50:51 发布
insert into dbm.xsqfmd(id,xh,qfzt,qfje)
select s_is.nextval,b.* from(
select xh,sum(qjje) as qfje,case when sum(qjje)>0 then 1 else 0 end as qfzt from dbm.xsjfxxl group by xh) b