-
mysql表与表之间数据的转移
所属栏目:[MySql] 日期:2020-09-01 热度:113
1.相同表结构INSERT INTO table1 SELECT * FROM table2;2.不同表结构INSERT INTO table1(filed1,...,filedn) SELECT table2.filed1,...,table2.filedn FROM table2;3.如果是不同数据库之间,参考以下:INSERT into db_ds_edu.t_exam_student(stu_id,stu_numbe[详细]
-
Mysql系列二:Mysql 开发标准规范
所属栏目:[MySql] 日期:2020-09-01 热度:83
原文链接:http://www.cnblogs.com/liulei-LL/p/7729983.html一、表设计1. 库名、表名、字段名使用小写字母,“_”分割。2. 库名、表名、字段名不超过12个字符。3. 库名、表名、字段名见名知意,尽量使用名词而不是动词。4. 优先使用InnoDB存储引擎。5. 存储精[详细]
-
Mysql系列一:SQL入门
所属栏目:[MySql] 日期:2020-09-01 热度:128
csdn博客搬迁连接数据库:1、在dos窗口下,进入数据库的安装目录的bin目录下,使用mysqld命令启动数据库服务,或者在计算机的服务里面启动mysql服务2、另外打开一个dos窗口,进入数据库的安装目录的bin目录下,使用命令连接数据库服务器:mysql -u root -p一、[详细]
-
infludb语法--官网
所属栏目:[MySql] 日期:2020-09-01 热度:106
https://docs.influxdata.com/influxdb/v0.8/api/query_language/InfluxDB features a SQL like query language, only used for querying data. The HTTP API has endpoints for writing data and performing other database administration tasks. The only[详细]
-
mysql 字符串的处理
所属栏目:[MySql] 日期:2020-09-01 热度:166
1.SUBSTRING2.SUBSTRING_INDEX3.right/left4.POSITIONsql实例select left(right(SUBSTRING_INDEX(data_out,:,7),10),3) from check_post01 where day_online=2017-06-08 00:00:00;select SUBSTRING(data_out,18,20) from check_post01 where day_online=2017-[详细]
-
mysql悲观锁总结和实践--转
所属栏目:[MySql] 日期:2020-09-01 热度:175
原文地址:http://chenzhou123520.iteye.com/blog/1860954最近学习了一下数据库的悲观锁和乐观锁,根据自己的理解和网上参考资料总结如下:悲观锁介绍(百科):悲观锁,正如其名,它指的是对数据被外界(包括本系统当前的其他事务,以及来自外部系统的事务处[详细]
-
mysql导入数据,涉及到时间转换,乱码问题解决
所属栏目:[MySql] 日期:2020-09-01 热度:119
表结构:drop table if exists `qi_an_log`;CREATE TABLE `qian_log` (`dt` LONG NOT NULL COMMENT 产生日期,格式yyyy-MM-dd,`METHOD_NAME` varchar(30) NOT NULL COMMENT 渠道名称或者接口名称,`src_ip` varchar(45) DEFAULT NULL,`ip` varchar(45) DEFAULT[详细]
-
看懂mysql执行计划--官方文档
所属栏目:[MySql] 日期:2020-09-01 热度:182
原文地址:https://dev.mysql.com/doc/refman/5.7/en/explain-output.html9.8.2EXPLAIN Output FormatTheEXPLAINstatement provides information about the execution plan for aSELECTstatement.EXPLAINreturns a row of information for each table used in[详细]
-
mysql replication principle--转
所属栏目:[MySql] 日期:2020-09-01 热度:175
原文地址:http://www.codeweblog.com/mysql-replication-principle/1, the replication processMysql replication (replication) is an asynchronous replication, from a Mysql instace (called Master) to another Mysql instance (call it Slave). Implem[详细]
-
Want to archive tables? Use Percona Toolkit’s pt-archiver--转
所属栏目:[MySql] 日期:2020-09-01 热度:57
原文地址:https://www.percona.com/blog/2013/08/12/want-to-archive-tables-use-pt-archiver/Percona Toolkit’spt-archiveris one of the best utilities to archive the records from large tables to another tablesorfiles. One interesting thing is t[详细]