Home > Database > Mysql Tutorial > 将mysql导入到csv的语句_MySQL

将mysql导入到csv的语句_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:38:44
Original
975 people have browsed it

bitsCN.com


将mysql导入到csv的语句

 

将mysql导入到csv语句为:

     

load data infile 'C://Users//ankreran//Desktop//a.csv' 

into table test1  

fields terminated by ','  optionally enclosed by '"' escaped by '"' 

lines terminated by '/r/n';

 

如果报错误“AX/SA/FS”这种,则表示csv的编码格式不对,用Editplus

打开该csv文件,另存为utf8格式的,然后再导入。
 

bitsCN.com
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template