MySQL window function definition and usage (version 8.0 +)
The document link (window function) of the official mysql English reference manual is as follows: https://dev.mysql.com/doc/refman/8.0/en/window-functions-usage.html There is no change in the overall situation.
1, Window function definition
The example table is as follows:
mysql> SELECT * FROM sales ORDER BY country, year, product;
+----- ...
Added by Bob_PHP_Builder on Sun, 23 Jan 2022 17:35:57 +0200
veri configuration & use of dmhs data comparison tool
VERI description
dmhs comes with its own comparison tool. After installing dmhs, you can find it in the bin directory, named dmhs_veri The tool needs to use unixODBC, version 2.3.0 and above, which is used to connect oracle and other databases. If dm, No.
VERI needs an AGENT for data acquisition, which is the AGENT service of the comparison t ...
Added by highphilosopher on Sun, 23 Jan 2022 17:00:47 +0200
Heterogeneous data fusion management system PandaDB community version v0 3 release
PandaDB R & D team recently launched PandaDB community version v0 3. This version independently designs and implements distributed graph storage and graph query engine, removes the dependence on Neo4j community version storage and query engine, and is seamlessly compatible with Neo4j client call interface and graph query syntax Cypher.
P ...
Added by dsds1121 on Sun, 23 Jan 2022 15:34:48 +0200
Database index failure
Database index failure
Database index MySQL optimization (I) MySQL optimization (II) MySQL optimization (III) MySQL optimization (IV)
Common cases of index failure
or keyword in sql statement;The left column field is not used in the composite index;like starts with%;Type conversion required;There are operations in the index column in w ...
Added by petersen313 on Sun, 23 Jan 2022 13:47:54 +0200
Mybatis source code analysis Mapper file registration and binding
Mybatis is a "sql oriented" persistence layer framework. It can dynamically assemble sql, which is extremely flexible. At the same time, it avoids almost all JDBC code, manually setting parameters and obtaining result sets. Its plug-in mechanism allows intercepting calls at a certain point during the execution of mapped statements, an ...
Added by TimC on Sun, 23 Jan 2022 10:49:22 +0200
In the Docker environment, run Mysql and start Binlog to configure master-slave synchronization
The same server uses Docker to simulate the master-slave synchronization settings of Mysql settings.
1. Run two Mysql: Master Mysql (master library) and slave Mysql (slave Library), database version 5.7.
#Pull image
docker pull mysql:5.7
#y run master and slave containers
docker run -p 13306:3306 --name slavemysql -e MYSQL_ROOT_PASSWORD=12345 ...
Added by jackliu97 on Sun, 23 Jan 2022 10:15:51 +0200
Several Python data reading and writing methods are oriented to Txt, csv documents, MongoDB, MySQL and other databases
1. Preface
Hello, everyone
In the daily process of dealing with Python, it is inevitable to involve data reading and writing business. For example, when doing crawler, you need to store the crawled data locally first, and then do the next step of processing; When doing data visualization analysis, you need to read the data from the hard disk ...
Added by watson516 on Sun, 23 Jan 2022 03:41:34 +0200
Mysql trigger realizes data synchronization of the same table structure between two databases of the same host
1, Mysql trigger creation
1. Mysql trigger syntax
CREATE [DEFINER = { 'user' | CURRENT_USER }]
TRIGGER trigger_name
trigger_time trigger_event
ON table_name
FOR EACH ROW
[trigger_order]
trigger_body
2. Keyword interpretation in MySQL creation syntax
fieldmeaningPossible valuesDEFINER=Optional parameter, specify creator, default to CURRE ...
Added by kosstr12 on Sat, 22 Jan 2022 20:58:37 +0200
MySQL database advanced operations
Data table advanced operations
Preparation: install MySQL database
create database CLASS;
use CLASS;
create table TEST (id int not null,name char(20) not null,cardid varchar(18) not null unique key,primary key (id));
insert into TEST(id,name,cardid) values (1,'zhangsan','123123');
insert into TEST(id,name,cardid) values (2,'lisi','12 ...
Added by roxki on Sat, 22 Jan 2022 20:07:08 +0200
Microservice test development - how to test rocketmq when used in the project
1. What is MQ
mq is A message middleware. The simplest understanding is that service A sends A message to service B, and service B performs A series of actions after receiving the message
What problem can this solve
Peak shaving: if services are called through the interface, whether http or rpc, but it is a synchronous action, it means tha ...
Added by LOUDMOUTH on Sat, 22 Jan 2022 19:26:56 +0200