Home >Database >Mysql Tutorial >mysql中的Load data的使用方法

mysql中的Load data的使用方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:55:161425browse

mysql中的Load data的使用方法,需学习Load data使用的朋友可以参考下

测试把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版本:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn