- 链接地址:https://blog.csdn.net/cubmonk/article/details/107358018
- 链接标题:Python MySQL - mysql-connector 连续查询select无效的问题-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2681
文章浏览阅读468次。我在循环查询 类似下面,发现不能正常执行,只有第一次才能查询到,数据库更新数据后数据不能被select查询到。import mysql.connectorimport timemydb = mysql.connector.connect( host="localhost", user="root", passwd="123456", database="runoob_db")while True: mycursor = mydb.cursor() mycursor.exe
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除