Mercurial > cpython-lru_cache-weakref
view Doc/includes/sqlite3/execute_1.py @ 47949:6c1237cb5aaa legacy-trunk
Re-word
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Sun, 13 Jul 2008 21:43:25 +0000 |
| parents | c62f6669ae22 |
| children | d2cf730de195 |
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=? and age=?", (who, age)) print cur.fetchone()
