Home  Contents

sql:prepare

Sql Core4 Lua Commands

SYNOPSIS

query:prepare(statement)

DESCRIPTION

Prepare executing the provided SQL statement. After the statement has been prepared, values can be bound to it by calling sql:bind(). Finally, the statement executes with sql:exec().

RETURN VALUE

On success, returns true. On failure, returns nil. In case of an error, the error can be retrieved by calling sql:lastError() on the parent database handle.

SEE ALSO