1. 程式人生 > >查詢兩張表中某一對應欄位不相同的…

查詢兩張表中某一對應欄位不相同的…

功能:查詢A表中欄位v與B表中欄位m不重複的記錄並去除重複 sql語句: select distinct v from  A where not exists(select DISTINCT m from B where A.v=B.m) 表A: 查詢兩張表中某一對應欄位不相同的資料並去除重複表B:
查詢兩張表中某一對應欄位不相同的資料並去除重複