日期:2014-05-16  浏览次数:20714 次

mysql文件导入问题
从txt导入数据到数据库,可以有哪些方法,我只知道load data infile,怎么判断数据库已有的数据,我不再导入(请给出数据库语句和C API函数)..... 
  谢谢!

------解决方案--------------------
load data infile "d:\aa.txt" replace into table tb;
------解决方案--------------------
replace如果有重复的就替换掉。
------解决方案--------------------
探讨

load data infile 'F:/mysql.txt' replace into table xqlsqltable fields terminated by ',' lines terminated by '\r\n';
我这样用了后报错说 Row 3 doesn't contain data for all columns
求解释....

------解决方案--------------------
引用我这样用了后报错说 Row 3 doesn't contain data for all columns