How to concat a string in Python
<pre><code>query = "SELECT * FROM mytable WHERE time=%s", (mytime)
</code></pre>

<p>Currently, I"m doing this, but I want to split it into 2 strings (so I can do them separately)</p>

<pre><code>cursor.execute("SELECT * FROM mytable WHERE time=%s",(mytime))
</code></pre>

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

<p>Edit: I want to concat query2, which has "LIMIT %s, %s"</p>
