当前位置: 移动技术网 > IT编程>数据库>Mysql > mysql中的Load data的使用方法

mysql中的Load data的使用方法

2017年12月12日  | 移动技术网IT编程  | 我要评论
测试把txt文件导入至mysql数据库中:

table:


txt文件:d:/data.txt ()

txt中使用 '\n' 描述null值。

导入数据:

复制代码 代码如下:

load data local infile 'd:/data.txt' into table pet
lines terminated by '\r\n' ignore 1 lines;


应用mysql版本:

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网