view Doc/includes/sqlite3/execute_3.py @ 77142:70ec1f671c19

Added test for namespace package dynamic path updates.
author Eric V. Smith <eric@trueblade.com>
date Fri, 25 May 2012 11:25:27 -0400
parents 9e1529bf0442
children
line wrap: on
line source

import sqlite3

con = sqlite3.connect("mydb")

cur = con.cursor()

who = "Yeltsin"
age = 72

cur.execute("select name_last, age from people where name_last=:who and age=:age",
    locals())
print(cur.fetchone())