1.查詢表a裏有而表b裏沒有的記錄
select a.字段1,a.字段2 from tableA a
minus
select b.字段1,b.字段2 from tableB b
2.查詢表b裏有而表a裏沒有的記錄
select b.字段1,b.字段2 from tableB b
minus
select a.字段1,a.字段2 from tableA a
1.查詢表a裏有而表b裏沒有的記錄
select a.字段1,a.字段2 from tableA a
minus
select b.字段1,b.字段2 from tableB b
2.查詢表b裏有而表a裏沒有的記錄
select b.字段1,b.字段2 from tableB b
minus
select a.字段1,a.字段2 from tableA a
<insert id="insert" parameterType="java.util.ArrayList" useGeneratedKeys="false"> INSERT ALL <for