如果下:TempSalesPriceFixedValues表和SalesPriceFixedValues表,要求查询出在TempSalesPriceFixedValues表中且不在SalesPriceFixedValues表中的记录。select distinct Ctyp from TempSal... Read More
方法一 使用 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