WriteDataSource

WriteDataSource[name]
writes a new HSQL data source name.

WriteDataSource[name, database]
writes a new data source to database.

更多信息更多信息

  • To use WriteDataSource, you first need to load DatabaseLink using Needs["DatabaseLink`"].
  • The following options can be given:
  • "Description"""textual description of the data source
    "URL"AutomaticURL to use in the JDBC setting
    "Username"Automaticusername for the connection
    "Password"Automaticpassword for the connection
    "Properties"{}properties to set for this connection
    "Location"Userwhere to install the data source
    "RelativePath"Automaticwhether file-based databases have a relative path
    "UseConnectionPool"Automaticwhether a connection pool should be used
    "ReadOnly"Automaticwhether the connection should be read only

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

基本范例 (2)基本范例 (2)

In[1]:=
Click for copyable input

Create a new data source named that will use the HSQL database:

In[2]:=
Click for copyable input
Out[2]=
In[1]:=
Click for copyable input

Create a new data source that includes the and and is available to all users:

In[2]:=
Click for copyable input
Out[2]=
New to Mathematica? Find your learning path »
Have a question? Ask support »