数据库版本mysql5.5.10 操作工具navicate for mysql
插入数据重复了 用mysql语句去重
-- 查询数量是否大于1 大于1 表示有重复数据
SELECT count(*) FROM financial_summary_detail t GROUP BY t.SUMMARY_ID,t.SOURCE,t.TEXT
-- 根据查询创建临时表create table t_temp SELECT t.SUMMARY_ID,t.SOURCE,t.TEXT FROM financial_summary_detail t GROUP BY t.SUMMARY_ID,t.SOURCE,t.TEXT
-- 查询临时表数据是否成功导入
SELECT * from t_temp
-- 删除原来的表
DROP TABLE financial_summary_detail
--修改临时表名
ALTER TABLE t_temp RENAME TO financial_summary_detail;