gpt4 book ai didi

mysql - select * from table where something 与 select column from table where something

转载 作者:行者123 更新时间:2023-11-30 22:54:40 25 4
gpt4 key购买 nike

我想知道两者之间的性能是否存在显着差异

select * from table where something

select column from table where something

最佳答案

SELECT * FROM table WHERE something

将检索该表中的所有列

SELECT column FROM table WHERE something

只会检索该列。

这意味着后者会更快。但是,如果那将是一个显着差异,则取决于您的表大小。

您可以阅读 this回答类似问题以获取更多信息

关于mysql - select * from table where something 与 select column from table where something,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26944442/

25 4 0