select companydID,Billno from master a where exists(select 1 from detail b where b.companyid=a.companyid and b.billno=a.billno and b.qwe='XXX') 这样,话说你也是广州恒康的么。字段名这么熟悉
22,302
社区成员
121,734
社区内容
加载中
试试用AI创作助手写篇文章吧