SELECT count(*), IndentId FROM t_customerforsale -- WHERE -- IndentId = '' GROUP BY IndentId HAVING count(*) > 1;
MySql查重语句,整理数据的时候常用到。