stmt:bind_parameter_name

Returns the name of the n'th paremeter

Prototype

stmt:bind_parameter_name(n)

Description

Returns the name of the n-th parameter in prepared statement stmt. Statement parameters of the form ``:AAA'' or ``@AAA'' or ``$VVV'' have a name which is the string ``:AAA'' or ``@AAA'' or ``$VVV''. In other words, the initial ``:'' or ``$'' or ``@'' is included as part of the name. Parameters of the form ``?'' or ``?NNN'' have no name. The first bound parameter has an index of 1. If the value n is out of range or if the n-th parameter is nameless, then nil is returned. The function returns sqlite3.OK on success or else a numerical error code (see Numerical error and result codes)

Lua functions

Topics