首页 > 数据库 > MySQL > 正文

mysql中的Load data的使用方法

2024-07-24 13:01:30
字体:
来源:转载
供稿:网友
测试把txt文件导入至mysql数据库中:

table:

mysql中的Load data的使用方法



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

mysql中的Load data的使用方法

txt中使用 '/N' 描述null值。

导入数据:

复制代码 代码如下:


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



应用mysql版本:

mysql中的Load data的使用方法

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表