DatabaseLink`
DatabaseLink`
SQLTablePrimaryKeys
SQLTablePrimaryKeys[conn,table]
returns information about the columns comprising the primary key of table.
Details and Options
- To use SQLTablePrimaryKeys, you first need to load DatabaseLink using Needs["DatabaseLink`"].
- The following options can be given:
-
"Catalog" None database catalog to use "Schema" None database schema to use "ShowColumnHeadings" False whether to return headings with the results
Examples
Basic Examples (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.