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

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

WBOY
Release: 2016-06-01 13:25:38
Original
981 people have browsed it

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时没有指定

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template