gpt4 book ai didi

mysql - 优化 SQL 查询时是否可以消除 PROJECTION 运算符?

转载 作者:行者123 更新时间:2023-11-29 20:27:09 25 4
gpt4 key购买 nike

对于 SQL 查询:

select * from t where R

我们将首先优化从该 SQL 构建的 ast,并获得一个逻辑计划,例如投影 --> 选择 --> t

是否可以消除投影部分?

最佳答案

正如您从 What are projection and selection? 中看到的那样SO主题,投影

means choosing which columns (or expressions) the query shall return

因此,这一步很难跳过。

关于mysql - 优化 SQL 查询时是否可以消除 PROJECTION 运算符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39244736/

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