Staging
v0.8.1
Revision de4c3f312cad13462cdef03a85af87b0af0e35a9 authored by Ned Deily on 05 December 2017, 08:17:05 UTC, committed by Ned Deily on 05 December 2017, 08:17:05 UTC
1 parent 0da2597
Raw File
execute_3.py
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())
back to top