Mercurial > cpython-lru_cache-weakref
view Doc/includes/sqlite3/execute_2.py @ 50401:7239fbcdcd4f 3.0
Merged revisions 68103 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r68103 | benjamin.peterson | 2008-12-31 08:51:07 -0600 (Wed, 31 Dec 2008) | 1 line
#4406 Directory has to inherit from commondialog.Dialog
........
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Wed, 31 Dec 2008 14:54:48 +0000 |
| 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", {"who": who, "age": age}) print(cur.fetchone())
