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

解决方案 »

  1.   

    load data infile "d:\aa.txt" replace into table tb;
      

  2.   

    replace如果有重复的就替换掉。
      

  3.   

    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
    求解释....
      

  4.   

    解释的很清楚了 Row 3 doesn't contain data for all columns第三行格式不对  打开文件第三行看看