Home >Database >Mysql Tutorial >MySQL中使用load data命令实现数据导入的方法_MySQL

MySQL中使用load data命令实现数据导入的方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:25:38980browse

bitsCN.com

使用方式如下:

mysql>load data local infile "D:/ab.txt" into table mytbl(name,age);

使用上述的命令就可以将D:/ab.txt文件的内容导入到表mytbl中,其中name和age是表mytbl的字段,对应ab.txt文件中每行的数据。如果编译安装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