mysql

查找player_role_id重复数据

select player_role_id , count(*) from player_role group by player_role_id having count(*) > 1 ;

删除重复数据player_role_id = 261826;

SELECT * INTO OUTFILE  '/tmp/player_role.sql' from player_role where player_role_id = 261826;

mysql 加上参数进入

mysql -uroot -pxxxxxx  --local-infile=1

Load Data local InFile '/tmp/player_role.sql' Into Table `player_role` FIELDS TERMINATED BY '\t'  ;



你可能感兴趣的:(mysql)