query = "SELECT * FROM mytable WHERE time=%s", (mytime)
Currently, I"m doing this, but I want to split it into 2 strings (so I can do them separately)
cursor.execute("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"