t = symbol,
c.execute('select * from stocks where symbol=?', t)
for t in [('2006-03-28', 'BUY', 'IBM', 1000, 45.0), ('2006-04-05', 'BUY',
    'MSOFT', 1000, 72.0), ('2006-04-06', 'SELL', 'IBM', 500, 53.0)]:
    c.execute('insert into stocks values (?,?,?,?,?)', t)
how to safely generate a SQL LIKE statement using python db-api