oracle查詢不包含某些值 oracle語(yǔ)句,我想查詢A表中的a字段下的值不等于B表中b的值的數(shù)據(jù)?
oracle語(yǔ)句,我想查詢A表中的a字段下的值不等于B表中b的值的數(shù)據(jù)?這個(gè)的話,需要用到not in來(lái)實(shí)現(xiàn)。select * from A where a not in ( select b
oracle語(yǔ)句,我想查詢A表中的a字段下的值不等于B表中b的值的數(shù)據(jù)?
這個(gè)的話,需要用到not in來(lái)實(shí)現(xiàn)。
select * from A where a not in ( select b from B);
備注:以上語(yǔ)句就是從B表中先讀取出來(lái)所有的b的值,之后通過not in函數(shù)進(jìn)行判斷,不符合條件的輸出結(jié)果。