SQLTableIndexInformation
This feature is not supported on the Wolfram Cloud.

SQLTableIndexInformation[conn]
returns a table of indices and statistics for a table.

DetailsDetails

  • To use SQLTableIndexInformation, you first need to load DatabaseLink using Needs["DatabaseLink`"].
  • The following options can be given:
  • "Catalog"Nonedatabase catalog to use
    "Schema"Nonedatabase schema to use
    "ShowColumnHeadings"Nonewhether to return headings with the results

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the package, as described in Using the Example Databases.

Create a table with a primary key and an index column:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Both columns appear as table indices:

In[4]:=
Click for copyable input
Out[4]//TableForm=
In[5]:=
Click for copyable input
In[6]:=
Click for copyable input