1 parent 206e85e commit 5dccb9fCopy full SHA for 5dccb9f
1 file changed
doc/src/user_guide/bind.rst
@@ -724,11 +724,11 @@ statement can be built up as follows:
724
725
.. code-block:: python
726
727
- bindValues = ["Gates", "Marvin", "Fay"]
728
- bindNames = [":" + str(i + 1) for i in range(len(bindValues))]
+ bind_values = ["Gates", "Marvin", "Fay"]
+ bind_names = [":" + str(i + 1) for i in range(len(bind_values))]
729
sql = "select employee_id, first_name, last_name from employees " + \
730
- "where last_name in (%s)" % (",".join(bindNames))
731
- cursor.execute(sql, bindValues)
+ "where last_name in (%s)" % (",".join(bind_names))
+ cursor.execute(sql, bind_values)
732
for row in cursor:
733
print(row)
734
0 commit comments