求SQL语句,当B列等于某值时,结果不取A列的值例表:A列 B列100 -1100 21200 -1当B列里有21时,不取A列的100结果:A列 B列200 -1[解决办法]这问题表达的太不清楚了。难道是这意思?select * from tb where a not in(select distinct a from tb where b=21)