23
在PostgreSQL中列出带有索引的列
我想获取PostgreSQL中索引所在的列。 在MySQL中,您可以使用SHOW INDEXES FOR table并查看该Column_name列。 mysql> show indexes from foos; +-------+------------+---------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | +-------+------------+---------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ | foos | 0 | PRIMARY | 1 | id | A | …
233
sql
postgresql
indexing