Reset - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Database[SQLite]

  

Reset

  

reset a prepared SQL statement

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Reset( statement, opts )

Parameters

statement

-

prepared SQL statement obtained using the Prepare command

opts

-

(optional) equation(s) of the form option = value; specify options for the Reset command

Options

• 

clear = truefalse

  

True means clear all bound values by calling ClearBindings after the statement is reset. The default is false.

Description

• 

The Reset command resets a prepared SQL statement so that it can be executed again.

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

Reset the statement and select data again

Resetstmt:

FetchAllstmt

Finalizestmt:

Closeconnection:

Compatibility

• 

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

• 

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

See Also

Database[SQLite][ClearBindings]