source: python/trunk/Doc/includes/sqlite3/execute_3.py

Last change on this file was 2, checked in by Yuri Dario, 15 years ago

Initial import for vendor code.

  • Property svn:eol-style set to native
File size: 211 bytes
Line 
1import sqlite3
2
3con = sqlite3.connect("mydb")
4
5cur = con.cursor()
6
7who = "Yeltsin"
8age = 72
9
10cur.execute("select name_last, age from people where name_last=:who and age=:age",
11 locals())
12print cur.fetchone()
Note: See TracBrowser for help on using the repository browser.