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
1960-12-311.80671000×1086.67070000×1089.2500572×1077.2814900×1074.6637746×1077.2775883×1075.2400000×1075.0199700×1071.19897000×108…1961-12-311.83691000×1086.60330000×1089.4943000×1077.3377632×1074.7293811×1077.4988037×1075.2800000×1075.0536350×1071.21236340900000006×108…1962-12-311.86538000×1086.65770000×1089.5832000×1077.4025784×1074.7990159×1077.7286629×1075.3250000×1075.0879450×1071.22590643400000006×108…1963-12-311.89242000×1086.82335000×1089.6812000×1077.4714353×1074.8697015×1077.9643017×1075.3650000×1075.1252000×1071.23960074400000006×108…1964-12-311.91889000×1086.98355000×1089.7826000×1077.5318337×1074.9361165×1078.2017016×1075.4000000×1075.1675350×1071.25344802900000006×108…1965-12-311.94303000×1087.15185000×1089.8883000×1077.5963695×1074.9945471×1078.4379369×1075.4348050×1075.2112350×1071.26745000×108…1966-12-311.96560000×1087.35400000×1089.9790000×1077.6600311×1075.0430631×1078.6721875×1075.4648500×1075.2519000×1071.27468492900000006×108…1967-12-311.98712000×1087.54550000×1081.00725000×1087.6951336×1075.0829214×1078.9052356×1075.4943600×1075.2900500×1071.28196115799999997×108…1968-12-312.00706000×1087.74510000×1081.01061000×1087.7294314×1075.1175036×1079.1377490×1075.5211700×1075.3235750×1071.28927892099999994×108…1969-12-312.02677000×1087.96025000×1081.03172000×1087.7909682×1075.1518731×1079.3709914×1075.5441750×1075.3537950×1071.29663845500000000×108…⋮⋮⋮⋮⋮⋮⋮⋮⋮⋮53 × 21 Matrix
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
What kind of issue would you like to report? (Optional)