Mercurial > cpython-lru_cache-weakref
view Doc/includes/sqlite3/execute_3.py @ 47717:516c19d8591a legacy-trunk
Set eol-style to CRLF for all batch files.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 14 Jun 2008 11:51:54 +0000 |
| parents | c62f6669ae22 |
| 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()
