如何将Mybatis中的`pee.id not in`改成`not exists`
可以将pee\.id not in修改为not exists \(select 1 from table_name where table_name\.id = pee\.id\)来实现不使用in和not in的效果。这将使用子查询来检查表中是否存在与pee\.id匹配的值。
原文地址: https://www.cveoy.top/t/topic/pVnp 著作权归作者所有。请勿转载和采集!