如果下:TempSalesPriceFixedValues表和SalesPriceFixedValues表,要求查询出在TempSalesPriceFixedValues表中且不在SalesPriceFixedValues表中的记录。select distinct Ctyp from TempSal... Read More
posted @ 2015-11-05 11:17 赵孟蒙 Views(265) Comments(0) Diggs(0) Edit
方法一 使用 not in ,容易理解,效率低1 select distinct A.ID from A where A.ID not in (select ID from B)方法二 使用 left join...on... , "B.IDisnull" 表示左连接之后在B.ID 字段为 n... Read More
posted @ 2015-11-05 10:55 赵孟蒙 Views(195) Comments(0) Diggs(0) Edit