select a.* from t_magazine a where a.is_del=0 and not exists (
select 1 from t_magazine b where b.is_examine in (0,2) and b.is_del=0
and a.id=b.id
)
该句的意思是查询不存在 子查询的记录 select 1 表示真假,其实不是很明白
select a.* from t_magazine a where a.is_del=0 and not exists (
select 1 from t_magazine b where b.is_examine in (0,2) and b.is_del=0
and a.id=b.id
)
该句的意思是查询不存在 子查询的记录 select 1 表示真假,其实不是很明白