Mercurial > cpython-lru_cache-weakref
view Doc/includes/sqlite3/execute_3.py @ 80201:28be586287c8 3.3
#12759: merge with 3.2.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sat, 03 Nov 2012 20:33:38 +0200 |
| parents | 9e1529bf0442 |
| children |
line wrap: on
line source
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())
