Database[SQLite] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Database Package : SQLite : Database/SQLite/Reset

Database[SQLite]

  

Reset

  

reset prepared statement

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Reset( statement, clear )

Parameters

statement

-

prepared statement obtained using Prepare command

clear

-

clear all bound values, default is false

Description

• 

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

• 

When clear = true is passed, ClearBindings is also called after the statement is reset.

Examples

withDatabaseSQLite

Attach,Bind,ClearBindings,Close,ColumnCount,ColumnNames,Execute,Fetch,FetchAll,FetchRow,Finalize,Open,Opened,Prepare,RESULT_BUSY,RESULT_DONE,RESULT_ROW,Reset,Step

(1)

dbFileToolsJoinPathkernelopts'datadir',SQLite,G20-Population.db:

connectionOpendb:

Select data from table - prepare statement

stmtPrepareconnection,SELECT * FROM population

stmtSQLite statement,SELECT * FROM population

(2)

Fetch all rows

FetchAllstmt

(3)

Reset the statement and select data again

Resetstmt:

FetchAllstmt

(4)

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]