1、去除掉表中字段的前后空格:
update 表名 set 字段名 = replace(replace(replace(字段名,char(9),''),char(10),''),char(13),'');
2、查询出某个字段出现多次的数据
select * from 表 where 字段 in( select 字段 from 表 group by 字段 having count(0)>1)

1、去除掉表中字段的前后空格:
update 表名 set 字段名 = replace(replace(replace(字段名,char(9),''),char(10),''),char(13),'');
2、查询出某个字段出现多次的数据
select * from 表 where 字段 in( select 字段 from 表 group by 字段 having count(0)>1)