(original) (raw)
diff -r 0a3149b30f20 Doc/library/sqlite3.rst --- a/Doc/library/sqlite3.rst Mon Aug 20 17:20:46 2012 +0200 +++ b/Doc/library/sqlite3.rst Mon Aug 20 10:04:12 2012 -0700 @@ -60,8 +60,9 @@ c.execute("select * from stocks where symbol = '%s'" % symbol) # Do this instead - t = (symbol,) + t = ('IBM',) c.execute('select * from stocks where symbol=?', t) + print(c.fetchone()) # Larger example for t in [('2006-03-28', 'BUY', 'IBM', 1000, 45.00),