2

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)
4

1 回答 1

2

不,这两个索引之间的行为没有区别。列表中的顺序INCLUDE无关紧要。

于 2020-06-05T19:59:52.097 回答