只要其中一个用户作库存查询,数据量大的时候就全体客户端跟着看热闹,得暂停一下,可否支持并发并加以优化,非常感谢。 此表数据约357368条 select res_id, num,ass_num,0 from edt_res where (num<>0 or ass_num<>0) select res_id,floor_num,ceil_num,edt_floor_num,edt_ceil_num from res where res_id in( select a.res_id from edt_res a ,res b where a.edt_id = 'F01' and 1=1 and a.res_id=b.res_id) select a.res_id,a.edt_id,sum(a.num),sum(a.ass_num),b.stop_flag from edt_res a,res b where a.edt_id = 'F01' and 1=1 and a.res_id=b.res_id and (a.num<>0 or a.ass_num<>0) 另外mgrdb文件里,可否加上 用户及所在脚本名或者模块名,方便排错 |