【MySQL】常见的mysql 进程state
Analyzing线程是对MyISAM 表的统计信息做分析(例如, ANALYZE TABLE )。checking permissions线程是检查服务器是否具有所需的权限来执行该语句。Checking table线程正在执行表检查操作。cleaning up线程处理一个命令,...
Mysql: 利用强制索引去掉重数据
Mysql: 利用强制索引去掉重数据目的:把a b表的数据去掉重复的数据后放到c表中数据库版本:[root@mysqltest ~]# mysql -u root -p123456Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 389805Server version: 5.1.73-community MySQL Community Server (GPL)Copyr...
MySql序列实现
小结一下:mysql 实现 oracle中序列的功能创建一张用于记录序列值的表:drop table if exists dpf_risk.seq_record;create table dpf_risk.seq_record(seq_name varchar(100) comment '序列名',val int(11) not null default 0 comment '序列值',primary key (seq_name)) comment '此表用于记录序列的值';/*初...
MySql中时间和日期函数
一、MySQL 获得当前日期时间 函数1.1 获得当前日期+时间(date + time)函数:now()mysql> select now();+---------------------+| now() |+---------------------+| 20...