查询重复, 1、查询重复需要去掉本身,重复关键字是name ,直接传当前数据在id 排除当前id就好国 select count(1) from A where A.id != id and A.name