gpt4 book ai didi

postgresql - 包含顺序对覆盖索引有任何影响吗?

转载 作者:行者123 更新时间:2023-12-04 09:43:39 28 4
gpt4 key购买 nike

PostgreSQL中以下两个索引有什么区别:

CREATE INDEX my_index ON table_name (column_one, column_two)
INCLUDE (account_id, id)


CREATE INDEX my_index ON table_name (column_one, column_two)
INCLUDE (id, account_id)

最佳答案

不,这两个索引之间的行为没有区别。 INCLUDE中的订单名单无所谓。

关于postgresql - 包含顺序对覆盖索引有任何影响吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62223166/

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