Welcome

首页 / 数据库 / MySQL / mysql中的Load data的使用方法

测试把txt文件导入至mysql数据库中:

table:


txt文件:D:/data.txt (txt文件下载)

txt中使用 "N" 描述null值。

导入数据:

复制代码 代码如下:
load data local infile "D:/data.txt" into table pet
lines terminated by " " ignore 1 lines;


应用mysql版本: