# Index Schema

**URL:** <https://forum.xojo.com/t/index-schema/21775>\
**Category:** Databases\
**Created:** [January 22, 2015, 1:22pm UTC](https://forum.xojo.com/t/index-schema/21775 "2015-01-22T13:22:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Charlesworth](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/958977/32.png) [@Mike\_Charlesworth](https://forum.xojo.com/u/Mike_Charlesworth)\
**Post date:** [January 22, 2015, 1:22pm UTC](https://forum.xojo.com/t/index-schema/21775/1 "2015-01-22T13:22:39Z")

</div>

How do you tell from an IndexSchema which column is indexed? when you retrieve the IndexSchema from a table you only get the index name back not the indexed column or any other info for that matter.

---

<div class="post-metadata">

**Author:** ![Paul\_Lefebvre](https://forum.xojo.com/user_avatar/forum.xojo.com/paul_lefebvre/32/3152_2.png) [@Paul\_Lefebvre](https://forum.xojo.com/u/Paul_Lefebvre)\
**Post date:** [January 22, 2015, 2:37pm UTC](https://forum.xojo.com/t/index-schema/21775/2 "2015-01-22T14:37:59Z")

</div>

What database? With SQLite, you can use the index\_info pragma to get back the columns in the index:

```auto
PRAGMA index_info(IndexName)
```

---

<div class="post-metadata">

**Author:** ![Tobias\_Bussmann](https://forum.xojo.com/user_avatar/forum.xojo.com/tobias_bussmann/32/297_2.png) [@Tobias\_Bussmann](https://forum.xojo.com/u/Tobias_Bussmann)\
**Post date:** [January 23, 2015, 10:48am UTC](https://forum.xojo.com/t/index-schema/21775/3 "2015-01-23T10:48:29Z")

</div>

If I remember correctly, the structure of the TableSchema / IndexSchema result set was harmonized to a least common denominator between all DB plugins in 2011. Some plugins (I know for ODBC) however offer a (hardly documented: \<[https://xojo.com/issue/18560](https://xojo.com/issue/18560)\>) ExtendedSchema Property that changes the behavior of the Schema-Quering functions (back) to a more detailed result set which may include the information you are looking for (see: \<[https://xojo.com/issue/18251](https://xojo.com/issue/18251)\>).  
Beside that there are Implementation specific schema querying methods using the SQL interface like what Paul suggested for SQLite as well as standardized methods proposed by the sql standard (if implemented). These are to be found in the information\_schema.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:35pm UTC](https://forum.xojo.com/t/index-schema/21775/4 "2020-10-29T17:35:30Z")

</div>


