SLIDE 1
1
1
Aaron Stevens
18 March 2009
CS108 Lecture 21: The Python DBABPI
2
Overview/Questions Review: the Python tuple sequence. How does a - - PDF document
CS108 Lecture 21: The Python DBABPI Aaron Stevens 18 March 2009 1 Overview/Questions Review: the Python tuple sequence. How does a custom application program connect to a database? How are SQL queries formed using parameterized
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sql = “INSERT INTO stocks VALUES (?,?,?,?,?)” parameters = (symbol,name,price,earnings,yield) cursor.execute(sql, parameters)
18
19
20
http://www.cs.bu.edu/courses/cs108/slides/CS108.PythonCard.Install.pdf
http://www.cs.bu.edu/courses/cs108/util/sqliteClient.zip
21
the rest for later in the week.