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
Copy code The code is as follows: window.location...
Two cases: 1. With index 2. Without index Prerequ...
The best thing you can do for your data and compu...
Table of contents Preface JS Magic Number Storing...
Table of contents Preface text 1. Global Registra...
There are many tools available for backing up MyS...
XHTML is the basis of CSS layout. jb51.net has al...
Table of contents 1. Core commands 2. Common comm...
The so-called favicon, which is the abbreviation o...
1 Requirements Overview The data of multiple tabl...
Problem background: There is a requirement to tak...
<body> <div id="root"> <...
Table of contents 1. Parent component passes data...
describe: Install VM under Windows 10, run Docker...
The layui table has multiple rows of data. Throug...