|
SOLUTIONS
|
DATABASELINK SYMBOL
SQLDelete
SQLDelete[conn, table]
deletes the data in a table in an SQL connection.
SQLDelete[conn, table, cond]
deletes data that matches cond.
DetailsDetails
- To use SQLDelete, 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.
- The following option can be given:
-
"Timeout" None the timeout for the query
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]:= |
| In[4]:= |
Delete all the data in a table:
| In[5]:= |
| Out[5]= |
| In[6]:= |
| Out[6]= |
Delete data matching a condition:
| In[7]:= |
| In[8]:= |
| Out[8]= |
| In[9]:= |
| Out[9]= |
| In[10]:= |
| In[11]:= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

