Home >Database >Mysql Tutorial >MySQL比较生僻的几种SQL

MySQL比较生僻的几种SQL

WBOY
WBOYOriginal
2016-06-07 17:15:001183browse

MySQL比较生僻的几种SQL,查看MYSQL 状态,show status,这些信息一般都是动态的,show variables;,查看MYSQL配置,这些信息一般都是

//txt文件入数据库
LOAD DATA INFILE 'data.txt' INTO TABLE table2
FIELDS TERMINATED BY ',';

//导出空的库表结构
mysqldump -d -u xxx -p resin_log> /temp/dump.sql

//查看MYSQL配置,这些信息一般都是静态的
show variables;
//查看MYSQL 状态,这些信息一般都是动态的
show status
//修改字段原有属性
ALTER TABLE ind_day_scale  MODIFY COLUMN avg_pv double unsigned NOT NULL DEFAULT '0' COMMENT '新增PV/新增UV'
//更改一个字段的部分值
UPDATE day_resinlog_2012_06_12 SET access_time = REPLACE(access_time,'2012-06-12','2012-06-14')

linux

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