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.
with⁡DatabaseSQLite:
db≔FileToolsJoinPath⁡kernelopts⁡datadir,SQLite,G20-Population.db:
connection≔Open⁡db:
Select data from table - prepare statement
stmt≔Prepare⁡connection,SELECT * FROM population
stmt≔SQLite statement,SELECT * FROM population
Fetch all rows
FetchAll⁡stmt
Reset the statement and select data again
Reset⁡stmt:
Finalize⁡stmt:
Close⁡connection:
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