not exists...except...

sql模拟超集

not exists …except…可以实现模拟超级的效果,比如判断A包含B,那么可以用sql语句not exists B except A;

但是遗憾的是,mysql没有实现except关键字,不过可以用in,not in或别的语句实现相同效果。