---
title: "ORACLE 增量插入法"
author: "winzenghua"
date: "2009-12-04T12:19:00Z"
tags: []
slug: "oracle"
draft: false
lastmod: "2009-12-04T12:19:00Z"
id: 987829
url: "https://java4gis.iteye.com/blog/987829"
---

select a.*  
from ( ) a  
LEFT JOIN ( SELECT f\_id FROM T\_BASE ) B ON A.PROUSERID=B.F\_ID  
WHERE B.F\_ID IS NULL;

A表的数据与B表的数据相比 如果A表的数据不存在于B表  
用这方法获得新的 不同的数据，然后插入B表  
如同 增量插入法