gpt4 book ai didi

sql - SQL连接中约束放置的性能差异

转载 作者:行者123 更新时间:2023-12-02 06:26:20 25 4
gpt4 key购买 nike

<分区>

准备好的查询结构和性能之间是否有任何差异

select * 
from employee e
join division d
on e.eid = d.eid
and e.div = d.div
and e.level > 5
and e.startDate > sysdate - interval '60' month
;

和:

select * 
from employee e
join division d
on e.eid = d.eid
and e.div = d.div
where
e.level > 5
and e.startDate > sysdate - interval '60' month
;

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com