请求一个子查询的问题

hbgzg3006 hbgzg3006 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
select *
FROM A a
WHERE a.update_time >= '20160101' and a.status_code is not null
and not exists (select 1 from (select 1 from E e where e.id = a.id order by e.update_time desc limit 1) t where e.status_code = a.status_code)

多一层子查询会发现找不到a.id,求教。
...全文
评论 10
收藏 已收藏
分享
返回顶部
hbgzg3006
MySQL 57,062 成员 56,759 内容