ยปCore Development>Code coverage>Doc/includes/sqlite3/execute_3.py

Python code coverage for Doc/includes/sqlite3/execute_3.py

#countcontent
1n/aimport sqlite3
2n/a
3n/acon = sqlite3.connect("mydb")
4n/a
5n/acur = con.cursor()
6n/a
7n/awho = "Yeltsin"
8n/aage = 72
9n/a
10n/acur.execute("select name_last, age from people where name_last=:who and age=:age",
11n/a locals())
12n/aprint(cur.fetchone())