SQLInsert
This feature is not supported on the Wolfram Cloud.

SQLInsert[conn,table,cols,data]
inserts data into a table in an SQL connection.

更多信息更多信息

  • To use SQLInsert, you first need to load DatabaseLink using Needs["DatabaseLink`"].
  • The following options can be given:
  • "Timeout"$SQLTimeoutthe timeout for the query
    "BatchSize"1000process inserts in batches of this many records
    "JavaBatching"Trueperform parameter batching in Java layer instead of Wolfram Language layer

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (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.

Open a connection:

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

Insert one row:

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

Insert multiple rows:

In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=
In[8]:=
Click for copyable input
In[9]:=
Click for copyable input
Out[9]=