擅长:python、mysql、java
<p>我想这应该是你想要的。若您打印结果,您可以看到您的查询结果。你知道吗</p>
<pre><code>idValue = 100
limitValue = 10000
query = "SELECT count(*) as count FROM oneTable WHERE id = {0} limit {1}".format(idValue,limitValue)
cursor.execute(query)
result = cursor.fetchall()
</code></pre>