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

  

Prepare

  

prepare an SQL statement

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Prepare( connection, sql )

Parameters

connection

-

database connection obtained using the Open command

sql

-

string; SQL statement

Description

• 

The Prepare command prepares an SQL statement for execution.

Examples

withDatabaseSQLite:

dbFileToolsJoinPathkerneloptsdatadir,SQLite,G20-Population.db:

connectionOpendb:

Select data from table - prepare statement

stmtPrepareconnection,SELECT * FROM population

stmtSQLite statement,SELECT * FROM population

(1)

Fetch all rows

FetchAllstmt

Finalizestmt:

Closeconnection:

Compatibility

• 

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

• 

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

See Also

Database[SQLite][Bind]

Database[SQLite][FetchAll]

Database[SQLite][Finalize]

Database[SQLite][Step]