SQLTables

SQLTables[conn]
returns the SQLTable objects for each table in an SQL connection.

DetailsDetails

  • To use SQLTables, 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
    "TableType""TABLE"type of table to return

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.

In[2]:=
Click for copyable input

List all the tables:

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

Get a specific table by name:

In[4]:=
Click for copyable input
Out[4]=

Get the tables that match a pattern:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
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.

New to Mathematica? Find your learning path »
Have a question? Ask support »