PLSQL Developer的同步表工具
Jun 07, 2016 pm 02:54 PMPLSQL Developer菜单栏中 Tools选项下有Compare User Objects和Compare Table Data功能。
PLSQL Developer菜单栏中 Tools选项下有Compare User Objects和Compare Table Data功能。
一、Tools --> compare user objects
该功能用于比较不同用户所拥有的对象(包括table、sequence、function、procedure、view等),并生成同步差异的sql脚本,用户通过执行该脚本,可保持两个用户的对象结构的同步,当然你也可以选择一个对象或者多个对象来进行比较。
操作步骤:
1. 选择样本库的对比对象
2. 选择目标库(Target Session..),即需修改和被同步的库
3. 点击Compare按钮
4. 在Differences选项卡,点击每个对象能查看消除差异的SQL,点击Apply SQL in Target Session执行
5. 点击Show Differences按钮,显示具体区别
二、Tools --> compare table data
该功能用于比较某些个表里面的数据是否一致,并自动生成同步差异的sql脚本,用户通过执行该脚本,就可以保持比较对象与被比较对象里面数据的同步。
操作步骤:
1. 选择样本库的对比表
2. 选择目标库(Target Session..),即需修改和被同步的库
3. 点击Compare按钮
4. 在Differences选项卡,点击每个表能查看消除差异的SQL
5. 点击Apply SQL in Target Session执行
注: 主键相同值的记录做更新(Update)其他字段。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Reduce the use of MySQL memory in Docker

How do you alter a table in MySQL using the ALTER TABLE statement?

How to solve the problem of mysql cannot open shared library

What is SQLite? Comprehensive overview

Run MySQl in Linux (with/without podman container with phpmyadmin)

Running multiple MySQL versions on MacOS: A step-by-step guide

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)?
