Practical exercise | Navicat data generation function

The purpose of data generation is to obtain the data required by the target system according to the model from the original data through calculation according to a certain data model. Data generation and data model are inseparable, and the result of data generation should meet the specific requirements of a data model for data. So, as the data model evolves, the methods of data generation evolve accordingly. If the data is generated manually or by script, it is not universal and the cost of manpower and time is extremely high . Therefore, fast, flexible and large-scale data generation has become the most important issue. In order to solve this pain point, the "data generation" function of Navicat can enable developers, testers, DBAs and data analysts to effectively improve the efficiency of data generation, making it easy, accurate and fast to generate massive data.

Today, we will introduce you to one of the most commonly used functions of Navicat - data generation. If you have not used Navicat before, please click here to download the full-featured trial version.

1. Data generation can be used to generate real and meaningful data to populate selected tables.

2. This window can be opened in "Tools" -> "Data Generation".

3. Select the target connection and database, here we choose the MySQL database as the target database. Of course, Navicat also supports PostgreSQL, MariaDB, Oracle, MongoDB, OceanBase, SQL Server, SQLite. At the same time, it is also compatible with major cloud platforms, such as: Alibaba Cloud, Huawei Cloud, Tencent Cloud, etc.

4. Click the "Options" button at the bottom to make advanced settings as needed. Wherein, using the transaction means that the transaction can be used in the data generation process.

5. Then, click "Next" to enter the interface for selecting the table that needs to generate data.

6. When a table is clicked on the left, the number of rows to be generated is displayed on the right, and the value can also be adjusted by yourself.

7. When a selected table is expanded on the left and a selected field under it is selected, the generation setting options of the corresponding field are displayed on the right, such as generator/start value/increment value, and Setting of maximum/minimum value etc. (The content displayed in this interface will vary depending on the field type); you can change its properties to customize the generator: number, date, time, sequence, enumeration, text, image, binary, foreign key, gender, URL, host name etc.

8. In the drop-down list of the generator, different generation rules can be selected as the generator.

9. At the bottom, you can click the "Table Generation Order" button to sort the generation order of the tables.

10. After the setting is complete, click "Next" to preview the generated data.

11. At the same time, you can also select the table you want to preview through the drop-down box.

12. The data in the table can also be regenerated.

13. After confirming that the preview information is correct, click the "Start" button to generate data.

14. After the generation is complete, you can also click the "Save Configuration File" button at the bottom to save the data generation settings.

Tips: If you need to update a table in the database (a table that generates data is added), right-click the table -> select Refresh, and then reopen the table, the newly generated data can be displayed in the table.

epilogue

On the market, there are many ways to realize data generation, but the data generation function of Navicat database management development tool is popular among enterprise users because of its product strength and advantages: easy to use, stable, fast and accurate. At the same time, it can also set any time through the automatic operation function to realize the data generation task. It supports multiple database access capabilities, including: MySQL, MariaDB, PostgreSQL, SQL Sever, Oracle, SQLite, MongoDB, OceanBase. Only when the data generated is accurate and efficient can the data be more effective.

Past review 

  1. Recruit Navicat Monitor 3.0 monitoring tool experience officer |
  2. Nanny level tutorial | Navicat manual backup and automatic backup
  3. Navicat 16 officially supports OceanBase full-line database products
  4. Navicat 16 will soon support Redis
  5. Try Navicat 16 for free
  6. Navicat's 20-year development history | Founded in Hong Kong, China in 1999
  7. The role of WHERE 1=1 in the SQL statement
  8. Calculate percentage of total rows in SQL
  9. The interactive gift event is in progress | The prize is Navicat Premium worth 819 yuan
  10. Fake websites cause multiple security risks | Official solemn statement: Do not buy or download Navicat software from unofficial channels

Guess you like

Origin blog.csdn.net/weixin_53935287/article/details/130823541