PHP » PYTHON |
login |
register |
about
|
PYTHON SQLite3Stmt::bindValue
is this article helpful?
|
Python replacement for PHP's SQLite3Stmt::bindValue
[
edit
| history
]
There is no need to prepare a statement separately. Variables can be bound in the "execute()" method.
db.execute('SELECT bar FROM foo WHERE id=:id', {"id": 1}) SQLite3Stmt::bindValue(PHP 5 >= 5.3.0) SQLite3Stmt::bindValue — Binds the value of a parameter to a statement variable DescriptionBinds the value of a parameter to a statement variable. Parameters
Return ValuesReturns TRUE if the value is bound to the statement variable, FALSE on failure. |
more
Recently updated
more
Most requested
|