execute_1.py revision 8ec7f656134b1230ab23003a94ba3266d7064122
1import sqlite3
2
3con = sqlite3.connect("mydb")
4
5cur = con.cursor()
6
7who = "Yeltsin"
8age = 72
9
10cur.execute("select name_last, age from people where name_last=? and age=?", (who, age))
11print cur.fetchone()
12