语法chkarchcode是什么意思
发布网友
发布时间:2024-10-01 23:53
我来回答
共1个回答
热心网友
时间:2024-11-23 12:27
select warespec,wareid,count(warespec)
from
(select u_chk_ware.warechkno,u_ware.wareid,u_ware.warename,u_chk_ware.warename,u_ware_ext.fileno,u_chk_ware.fileno,u_ware.warespec,u_chk_ware.warespec,u_ware.procer,u_chk_ware.procer from u_chk_ware,u_ware,u_ware_extn where u_chk_ware.wareid is null and u_chk_ware.status = 1and u_chk_ware.fileno = u_ware_ext.fileno and u_ware.wareid = u_ware_ext.wareid) a
group by warespec,wareid(这里,如果你上面有2个,没有计算的,下面也要写2个的)
having count(warespec)>1