Oracle 导出的txt数据如何导入到另一个MySQL数据库中
txt文件数据如下:
流水号    姓名    问题
001      张三     感冒
002      李四     发烧
003      王五     头疼
如何将这个文件的数据通过PHP导入到MySQL数据库中

解决方案 »

  1.   


    load data local infile……
      

  2.   

     不用php,直接sql语句:
    Load Data InFile 'D:/Data.txt' Into Table `TableTest` Fields Terminated By '\t' Enclosed By '\n';或者图形界面导入。 
      

  3.   

    也可以用SQL SERVER 自带的导入导出工具
      

  4.   

    关键是MySQL数据库是网站上的数据库,而txt文件是别人每天给提供的数据,而且导出来的数据,每列的宽度不同,如下:
    流水号    姓名               问题
    001      张三               感冒
    002      李四               发烧
    003      王五               头疼