查找同一个表中某个字段中有相同的数据

select a.invadjustid,b.waresn from TInvAdjust a,tinvadjust b
where a.invadjustsn<>b.invadjustsn
and a.invadjustid=b.invadjustid
order by a.invadjustid desc

posted on 2013-02-25 11:23  jameshappy  阅读(593)  评论(0编辑  收藏  举报