mysql差集

1.需求 可以理解爲求兩個sql的差集,通過名稱+年齡判斷     2.解決方法        2.1 通過contant         通過contant把兩個字符串拼接,再通過not in過濾 select constant(e,f) c from A  a a.c not  in(select constant(e,f) c from A  a)         性能很差,不推薦使用  
相關文章
相關標籤/搜索