2018年4月30日

Sql查询过滤重复的数据

摘要: select CustCode,* from solist a where not exists(select 1 from SOList(nolock) left join so(nolock) on solist.soid=so.SOID where a.ConfirmDate>solist.C 阅读全文

posted @ 2018-04-30 22:08 wwwlzp 阅读(224) 评论(0) 推荐(0)

判断一个表里面有没有相同的数据

摘要: select * from (select code,count(code) num from mmf group by code) a where a.num>=2 阅读全文

posted @ 2018-04-30 21:39 wwwlzp 阅读(143) 评论(0) 推荐(0)

导航