DatabaseLink`
DatabaseLink`

SQLTableIndexInformation

SQLTableIndexInformation[conn]

returns a table of indices and statistics for a table.

更多信息和选项

  • 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"Falsewhether to return headings with the results

范例

基本范例  (1)

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 DatabaseLink`DatabaseExamples` package, as described in Using the Example Databases.

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

Both columns appear as table indices: