SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 96 Python
2007-08-15 14:28:22 +00:00
import sqlite3
con = sqlite3.connect("mydb")
cur = con.cursor()
who = "Yeltsin"
age = 72
cur.execute("select name_last, age from people where name_last=? and age=?", (who, age))
print(cur.fetchone())