|
SOLUTIONS
|
SQLSelect
SQLSelect[conn, table]
extracts data from a table in an SQL connection.
SQLSelect[conn, table, cols]
extracts data from particular columns.
SQLSelect[conn, table, cols, cond]
only extracts data that matches cond.
更多信息更多信息
- To use SQLSelect, you first need to load DatabaseLink using Needs["DatabaseLink`"].
- The following options can be given:
-
"Distinct" False whether to return only distinct results "GetAsStrings" False whether to return the results as strings "MaxRows" Automatic the maximum number of rows to return "ShowColumnHeadings" False whether to return headings with the results "SortingColumns" None how to sort the data "Timeout" None the timeout for the query
范例范例打开所有单元关闭所有单元
基本范例 (1)基本范例 (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]= | ![]() |
| In[4]:= |
| Out[4]= | ![]() |
Join data from multiple tables:
| In[5]:= |
Out[5]//Short= | |
![]() | |
Select data matching a condition:
| In[6]:= |
| Out[6]= | ![]() |
Select data matching a pattern:
| In[7]:= |
| Out[7]= | ![]() |
| In[8]:= |
| Out[8]= | ![]() |
| In[9]:= |
| Out[9]= | ![]() |
| In[10]:= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »








