equal
deleted
inserted
replaced
|
1 import sqlite3 |
|
2 |
|
3 con = sqlite3.connect("mydb") |
|
4 |
|
5 cur = con.cursor() |
|
6 |
|
7 who = "Yeltsin" |
|
8 age = 72 |
|
9 |
|
10 cur.execute("select name_last, age from people where name_last=? and age=?", (who, age)) |
|
11 print cur.fetchone() |