Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. cur.execute('select * from table where title like "spam%seggs"',
  2. [conjunction])
  3.  
  4. cur.execute('select * from table where title like %s',
  5. ['spam{}eggs'.format(conjunction)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement