Execute - 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]

  

Execute

  

execute SQL statement

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Execute( connection, sql )

Parameters

connection

-

database connection obtained using the Open command

sql

-

string; SQL statement

Description

• 

The Execute command executes an SQL statement using the provided database connection. On success NULL is returned.

• 

This command is intended to be used with SQL statements that do not return any output, such as CREATE TABLE or INSERT.

• 

Use a semicolon (;) to separate statements.

Examples

withDatabaseSQLite:

Create in memory database

dbOpen:memory::

Create table test with on column val1

Executedb,CREATE TABLE test (val1)

Compatibility

• 

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

• 

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