加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

PostgreSQL join where 条件不同 explain 执行计划的差别

发布时间:2020-12-13 17:14:26 所属栏目:百科 来源:网络整理
导读:explain analyze select a.order_id,a.customer_id,a.price,b.order_id,b.customer_id,b.customer_name from tbl_a a left join tbl_b b --( select t.order_id from tbl_b t where t.order_id= 'oid1' )b on a.order_id = b.order_id where a.order_id = 'o
explain analyze
select a.order_id,a.customer_id,a.price,b.order_id,b.customer_id,b.customer_name from tbl_a a left join tbl_b b --(select t.order_id from tbl_b t where t.order_id= 'oid1')b on a.order_id = b.order_id where a.order_id = 'oid1' --b.order_id = 'oid1'

待研究 Nested Loop Left Join,Nested Loop,Hash Left Join

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读