摘要:8.1 Optimization Overview 8.2 Optimizing SQL Statements 8.2.1 Optimizing SELECT Statements 8.2.2 Optimizing Subqueries and Derived Tables 8.2.3 Optimi
阅读全文
摘要:一个工单表字段多+个别字段使用较长(上千) varchar,导致err 1118 解决是将这些超长varchar 转换为 text ,注意 MBG 生成的mapper 会有变化 这种业务数据量逐年增长,表字段不断增加。可采取冷热数据分离(横向分表,业务分隔),业务字段分离(纵向分表,关联查询) ht
阅读全文
摘要:MySQL 5.6 Reference Manual Including MySQL NDB Cluster 7.3-7.4 Reference Guide Abstract This is the MySQL Reference Manual. It documents MySQL 5.6 thr
阅读全文
摘要:https://dev.mysql.com/doc/refman/5.7/en/innodb-introduction.html InnoDB is a general-purpose storage engine that balances high reliability and high pe
阅读全文
摘要:https://learnsql.com/blog/history-of-sql-standards/ Has the SQL standard changed in the 30+ years it's been around? Absolutely! Learn about the journe
阅读全文
摘要:12.10 Full-Text Search Functions 12.10.1 Natural Language Full-Text Searches12.10.2 Boolean Full-Text Searches12.10.3 Full-Text Searches with Query Ex
阅读全文
摘要:1. 启动/停止/重启/状态 service mysqld start service mysqld stop service mysqld restart service mysqld status mysqld 是守护进程脚本,init.d 不是mysql的home 2. home/进入控制台
阅读全文
摘要:https://dev.mysql.com/doc/refman/5.7/en/create-user.html https://dev.mysql.com/doc/refman/5.7/en/grant.html 这个搜索非常好用 CREATE USER 'u1'@'%' IDENTIFIED B
阅读全文
摘要:http://docs.oracle.com/javaee/6/tutorial/doc/gkjiu.html https://en.wikipedia.org/wiki/Lock_(computer_science)
阅读全文
摘要:https://docs.oracle.com/cd/E19957-01/mysql-refman-5.4/index.html (已离线保存) Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved. Th
阅读全文
摘要:内置分词器 https://dev.mysql.com/doc/refman/5.7/en/fulltext-search-ngram.html 语法 https://dev.mysql.com/doc/refman/5.7/en/fulltext-search.html 简介 https://de
阅读全文
摘要:https://docs.oracle.com/cd/E17952_01/mysql-5.6-en/explain-output.html#explain-join-types 简单举例: The EXPLAIN statement provides information about how My
阅读全文
摘要:聚集索引 Each InnoDB table has a special index called the clustered index that stores row data. Typically, the clustered index is synonymous with the prim
阅读全文
摘要:http://www.ocelot.ca/commands.htm ALTER Change domain, schema, sequence, or table definition.Example: ALTER TABLE TABLE_1 DROP COLUMN COLUMN_1 RESTRIC
阅读全文
摘要:https://dev.mysql.com/doc/refman/8.0/en/show-processlist.html show full PROCESSLIST 新开一个查询窗口就会新增一条记录,关闭一个查询窗口就会减少一条记录 Command The type of command the
阅读全文
摘要:JDBC 资料:java.sql.Connection Spring 资料:org.springframework.transaction.annotation.Isolation MySQL 资料:https://dev.mysql.com/doc/refman/8.0/en/innodb-tra
阅读全文
摘要:CREATE TABLE foo ( `name` VARCHAR (20) NULL DEFAULT NULL ) ENGINE = INNODB; insert foo values ('张三'); 设置隔离级别 #set SESSION TRANSACTION ISOLATION LEVEL
阅读全文
摘要:show engines ; https://dev.mysql.com/doc/refman/5.7/en/storage-engines.html 创建表时(CREATE TABLE Statement)可以指定存储引擎类型 简介 InnoDB: The default storage engi
阅读全文
摘要:就是想简单的学习一下范式结果却不简单 诸多概念词语,都是中文可就是弄不太懂引出了《数据库系统概论》 行列二维表格固化思维的思考灵魂一问:什么是关系型数据库? 范式引出了码。。。 非关系型数据不遵循范式关系型数据库一定遵循1NF对于范式有更好理解只能站在更高的视角 玛德!! 参考资料: 《数据库系统概
阅读全文
摘要:操作 如何对比线上数据库,线上数据库无法直连时可以下载表结构,创建一个可以直接访问的数据库。然后开启对比 navicat 帮助文档 结构同步(只限于完整版本)Navicat 让你以详细分析的进程比对及修改表结构。換句话说, Navicat 比对两个数据库和/或模式之间的表及显示其结构的差異处。从主菜
阅读全文