查找同一个表中某个字段中有相同的数据
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
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