1.sql查询某张表中某一列的重复数据
select 字段name from 表A where 字段name in (select 字段name from 表A group by 字段name having count(字段name)> 1) order by 字段name
2.sql 替换某一列的某几个值
update 表名 set 字段名 =replace(原字段名,被替换前的数值,替换后的数值)
例子:
update 表A set age = replace(age,18,20)
1.sql查询某张表中某一列的重复数据
select 字段name from 表A where 字段name in (select 字段name from 表A group by 字段name having count(字段name)> 1) order by 字段name
2.sql 替换某一列的某几个值
update 表名 set 字段名 =replace(原字段名,被替换前的数值,替换后的数值)
例子:
update 表A set age = replace(age,18,20)