想想我的两个表具有相同的列。一列是ID,另一列是文本。是否有可能在PLSQL中实现以下伪代码?比较两个表,如果行不同,请在Oracle中运行查询
Compare each row (They will have the same ID)
If anything is different about them
Run a couple of queries: an Update, and an Insert
ElseIf they are the same
Do nothing
Else the row does not exist
So add the row to the table compared on
使用PLSQL很容易做到这一点,还是应该创建一个独立的应用程序来执行此逻辑。
您是否试过[MERGE](http://oracle-base.com/articles/9i/merge-statement.php)声明? – user75ponic 2014-10-28 05:03:40