MySQL 查询最多返回 65535 行(最大值)。如何检索超过限制的表的所有行?(共 120k)
query_string1 = "SELECT DISTINCT ID FROM table1"
print query_string1
try:
self.cursor.execute(query_string1)
self.ids = self.cursor.fetchall()
print "Select query was successfully executed"
print "%d unique ids where retrieved" %len(self.ids)