|
发表于 2016-5-20 15:35:46
|
显示全部楼层
先把临时表建好res_type_collect
Load Data InFile 'D:/1.txt' Into Table `res_type_collect` fields terminated by ',' lines terminated by '\n';
insert into mis_table_data_list (test_id, test_data) select a.test_id,b.test_data from mis_table_test_info a, res_type_collect b where a.test_name = b.test_name
我这样写的话估计可以快10倍,(当我说大话) |
|