Automatic Generation of SQL for database data comparison and Automatic Generation of SQL for comparison

Source: Internet
Author: User

Automatic Generation of SQL for database data comparison and Automatic Generation of SQL for comparison
1. Background

One iteration is coming to an end and is submitted to the user for testing. The system administrator starts some data in the test environment. Then, when the system administrator goes online, the system administrator starts the data in the environment, however, this time there was too much data and I said it once: "Why do we need to initialize it twice? "

What you said makes sense! However, Navicat only provides the direct Data synchronization function, does not provide the SQL statement generation function, updates Data, and does not see the SQL, it feels a bit uncertain, find the dbForge Data Compare

 

 

2. Tutorial

1. create two new tables in the database to initialize some data.

Database A, Table Structure & Data:

 

Database B, table structure & Data:

 

2. Download the above link to open the software

 

3. Create a connection and select the table for data comparison in mapping.

 

4. in this step, we can see the data difference between the two databases. Click the Green Arrow to synchronize data with one click. However, we still want to see SQL, click "Synchronize" in the upper-right corner of the page to generate an SQL statement.

 

In this way, we can get the SQL statement of the database differential data, and can directly submit it to the O & M to update the formal environment database!

 

3. Complete

After writing this operation, I thought it was too simple. It was entirely for the software of Amway devart ....

There should be applause here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.