Attach - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Database[SQLite]

  

Attach

  

attach a new database to the opened connection

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Attach( connection, filename, name )

Parameters

connection

-

database connection obtained using the Open command

filename

-

string; URI file name

name

-

string; name of database

Description

• 

The Attach command adds a database file to the current database connection. It is a convenience command implementing the ATTACH DATABASE statement.

• 

The database-names main and temp refer to the main database and the database used for temporary tables, respectively. The main and temp databases cannot be attached or detached.

• 

The Attach command can open an existing database from Workbook if the filename is a valid Workbook URI.

Examples

withDatabaseSQLite:

Create in memory database

dbOpen:memory::

Create and attach another in memory database

Attachdb,:memory:,database2:

Opened databases

Openeddb

tabledatabase2=,main=

(1)

Close database connection

Closedb:

Compatibility

• 

The Database[SQLite][Attach] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

• 

The Database[SQLite][Attach] command was updated in Maple 2016.

See Also

Database[SQLite][Open]