mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-24 07:44:42 +00:00
12 lines
212 B
Python
12 lines
212 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=:who and age=:age",
|
|
locals())
|
|
print(cur.fetchone())
|