Python code coverage for Doc/includes/sqlite3/execute_3.py
# | count | content |
---|---|---|
1 | n/a | import sqlite3 |
2 | n/a | |
3 | n/a | con = sqlite3.connect("mydb") |
4 | n/a | |
5 | n/a | cur = con.cursor() |
6 | n/a | |
7 | n/a | who = "Yeltsin" |
8 | n/a | age = 72 |
9 | n/a | |
10 | n/a | cur.execute("select name_last, age from people where name_last=:who and age=:age", |
11 | n/a | locals()) |
12 | n/a | print(cur.fetchone()) |