遇到个问题,240万的邮箱数据,重复了70万,这就是怎么过滤的问题了。
大致搜索了一下,有一种比较土的方法。
mysql没有select into table select * from table2
create table new_table select * from prev_table
或者
insert into new_table select * from prev_table
因为insert into的时候要有个表,所以,先造一个相同的结构的表,然后在insert into
大致的语句是这样:
insert into new_table select * from prev_table group by email order by id;
这样把两个表互换下名字就解决了。