stmt:bind_names

Binds values in a table to parameters

Prototype

stmt:bind_names(nametable)

Description

Binds the values in nametable to statement parameters. If the statement parameters are named (i.e., of the form ``:AAA'' or ``$AAA'') then this function looks for appropriately named fields in nametable; if the statement parameters are not named, it looks for numerical fields 1 to the number of statement parameters. The function returns sqlite3.OK on success or else a numerical error code (see Numerical error and result codes).

Lua functions

Topics