How to concat a string in Python
- by alex
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"