|
SOLUTIONS
|
DATABASELINK SYMBOL
SQLColumnNames
SQLColumnNames[conn]
returns a list of
pairs for each column in an SQL connection.
DetailsDetails
- To use SQLColumnNames, 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
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
| In[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
package, as described in Using the Example Databases.
| In[2]:= |
| In[3]:= |
Out[3]//Short= | |
Get
pairs from tables whose names start with "SA":
| In[4]:= |
| Out[4]= |
Get
pairs from a particular table:
| In[5]:= |
| Out[5]= |
| In[6]:= |
| In[7]:= |
| Out[7]= |
Get
pairs for columns whose names begin with "V" in any table:
| In[8]:= |
| Out[8]= | ![]() |
| In[9]:= |
| Out[9]= | ![]() |
Extract just the column names:
| In[10]:= |
| Out[10]= |
| In[11]:= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


