mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
11 lines
204 B
Python
11 lines
204 B
Python
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())
|