帮忙优化下

liyufu86 liyufu86 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
前人写的代码
发现执行起来很慢

高人看看怎么优化

select count( distinct a.id ) from OrderProductItem a where ( a.stauts= 2 and a.orgId= 10000 ) or (a.id in (select a.parentid from a where a.stauts= 0 and a.stauts_deliver= 22 group by a.parentid ))

十分感谢

不知道为什么很慢,
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
liyufu86
疑难问题 22,298 成员 121,727 内容