Database[SQLite]
Reset
reset a prepared SQL statement
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Reset( statement, opts )
statement
-
prepared SQL statement obtained using the Prepare command
opts
(optional) equation(s) of the form option = value; specify options for the Reset command
clear = truefalse
True means clear all bound values by calling ClearBindings after the statement is reset. The default is false.
The Reset command resets a prepared SQL statement so that it can be executed again.
withDatabaseSQLite:
db≔FileToolsJoinPathkerneloptsdatadir,SQLite,G20-Population.db:
connection≔Opendb:
Select data from table - prepare statement
stmt≔Prepareconnection,SELECT * FROM population
stmt≔SQLite statement,SELECT * FROM population
Fetch all rows
FetchAllstmt
Reset the statement and select data again
Resetstmt:
Finalizestmt:
Closeconnection:
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]
Download Help Document