>>> _cursor.execute("select * from bitter.test where id > 34")
1L
>>> _cursor.fetchall()
({'priority': 1L, 'default': 0, 'id': 35L, 'name': 'chinanet'},)
>>> _cursor.execute("select * from bitter.test where id > 34")
1L
>>> _cursor.fetchall()
({'priority': 1L, 'default': 0, 'id': 35L, 'name': 'chinanet'},)
>>>
the first time, i run cursor.execute and cursor.fetchall, i got the right result.
before the second time i run execute and fetchall
i insert data into mysql which id id 36, i also run commit command in mysql
but cursor.execute/fetchall counld only get the data before without new data