1.需求

可以理解为求两个sql的差集,通过名称+年龄判断

mysql差集

 

 

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)

        性能很差,不推荐使用

    2.2 通过表关联

mysql差集

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-02-07
  • 2021-11-28
  • 2021-12-30
相关资源
相似解决方案