问题是这样的: 表persons有两个字段: id和name 文本文档persons.txt中内容(其中每行字段之间用tab分割): 1 Bush 2 Carter 3 Bush 在mysql命令行下使用 load data local infile “persons.txt” into table p 问题是这样的:表persons有两个字段: id和name文本文档persons.txt中内容
测试把txt文件导入至mysql数据库中: table: txt文件:D:/data.txt (txt文件下载) txt中使用 '\N' 描述null值。 导入数据: 复制代码 代码如下: load data local infile 'D:/data.txt' into table pet lines t 测试把txt文件导入至mysql数据库中: table: txt文件:D:/data.tx