stmt:bind

Binds a value to a parameter

Prototype

stmt:bind(n[,value])

Description

Binds value to statement parameter n. If the type of value is string or number, it is bound as text or double, respectively. If value is a boolean or nil or missing, any previous binding is removed. The function returns sqlite3.OK on success or else a numerical error code (see Numerical error and result codes).

Lua functions

Topics