How to concat a string in Python

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-31T00:41:33Z Indexed on 2010/03/31 0:53 UTC
Read the original article Hit count: 284

Filed under:
query = "SELECT * FROM mytable WHERE time=%s", (mytime)

Then, I want to add a limit %s to it. How can I do that without messing up the %s in mytime?

Edit: I want to concat query2, which has "LIMIT %s, %s"

© Stack Overflow or respective owner

Related posts about python