|
SOLUTIONS
|
DATABASELINK 符号
SQLExecute
SQLExecute[conn, command]
executes a command in an SQL connection.
SQLExecute[conn, command, args]
passes arguments to the command.
更多信息更多信息
- To use SQLExecute, you first need to load DatabaseLink using Needs["DatabaseLink`"].
Use this function with caution, as you can lose data permanently!- Returns an integer specifying the number of rows affected by the query. Returns $Failed if an error is encountered when dropping a table.
- The following options can be given:
-
"GetAsStrings" False return the results as strings "MaxRows" Automatic the maximum number of rows to return "ShowColumnHeadings" False whether to return headings with the results "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]= |
| In[5]:= |
| Out[5]= |
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
| In[9]:= |
| Out[9]= |
| In[10]:= |
| Out[10]= |
| In[11]:= |
| Out[11]= |
| In[12]:= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
