sqlite_exec — Runs a single or multiple SQL statements.
sqlite_exec( : : SqliteHandle, Sql, BindParams : )
sqlite_exec runs a single or multiple SQL statements. Multiple SQL statements are separated by semicolons.
The statements will be executed immediatelly. The outputs can be acquired by-row with the help of operator sqlite_step.
In case of errors, the current statement stops and subsequent statements will be skipped.
In this case, the operator returns with error code 1302 (H_ERR_WIPV2 / Wrong value of control parameter: 2).
An additional and error message with more details will be output in the HDevelop Output Console, see set_system parameter 'do_low_error'.
Find more information about the Sqlite extension package in the introduction to this chapter.
SqliteHandle (input_control) framegrabber → (handle)
handle to a SQLite data base
Sql (input_control) string → (string)
SQL statement(s)
BindParams (input_control) string(-array) → (string / integer)
questionmarks in SQL statement are bound to the elements of this tuple
Sql := 'INSERT INTO results(timestamp,filename,text) VALUES(strftime(\'%s\', \'now\'), ?1, ?2);' sqlite_exec (SqliteHandle, Sql, [MyFilename, MyText])
Foundation