sql select 数子

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 表示真假,其实不是很明白

猜你喜欢

转载自helloworlda.iteye.com/blog/1246441