To put it simply, MySQL worm replication is to continuously insert the queried data into the specified data table. Normally, the MySQL worm is used to test table pressure when replicating. Next, we will introduce the use of worm replication in MySQL data tables with a simple example. First, we can query the information fields in the existing money table. The table information is as shown in the figure below. The basic syntax of worm replication is: insert into + data table name + field list/* + from data table name; Example usage statement: insert into money select null,name,money from money; Then we use the command statement of the worm to copy the data in the money table. The specific operation is shown in the figure below. Here we can see that the data grows in the order of 2, 4, 8, 16, 32..., which is the exponential increase we are familiar with. If you continue to operate, the data in the table can be expanded to a certain order of magnitude in a short period of time, thereby achieving the purpose of testing the table pressure. The above is the method of using worm replication in MySQL data table. Thank you for your support to 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed tutorial on installing nvidia driver + CUDA + cuDNN in Ubuntu 16.04
>>: vue+elementui implements the complete code of adding and modifying a shared bullet box
Introduction to Load Balancing Before introducing...
Founder Type Library is a font library developed ...
Application of HTML and CSS in Flash: I accidental...
Share a beautiful input box animation style libra...
1. Go to the official website to download the jdk...
Table of contents Features Advantages Installatio...
Preface Any application that can be written in Ja...
Table of contents Get the time in the past week G...
By turning on the Recycle Bin function, you can r...
Table of contents Question: 1. First attempt 2. R...
Preface Still referring to the project mentioned ...
1. Two words at the beginning Hello everyone, my ...
background Ever wondered how to create a shadow e...
Steps to configure whitelist access in mysql 1. L...
Seurat is a heavyweight R package for single-cell...