[摘要]+----+-------+-------------------部分字段重复-----------------------1.加索引的方式create table test_2(id int,va...
+----+-------+
-------------------部分字段重复---------------------
--1.加索引的方式
create table test_2(id int,value int);
insert test_2 select 1,2 union all select 1,3 union all select 2,3;
Alter IGNORE table test_2 add primary key(id);
select * from test_2;
+----+-------+
关键词:MySQL如何消除重复行的办法区分