Home > Database > Mysql Tutorial > 将txt 文件导入mysql数据库_MySQL

将txt 文件导入mysql数据库_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:10:13
Original
1274 people have browsed it

txt文件导入到mysql中命令:

在mysql数据库控制台输入:
use trends_trading_ssytem

load data local infile 'D://data.txt' into table t_stock fields terminated by '/t';
fields terminated by','
lines terminated by'/r/n'

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