如果我可以直接使用cursor.execute,为什么还要引用cursor.fetchall()?a
谢谢
最佳答案
因为cursor.execute()
实际上并不返回数据。想必您需要它,因此您需要运行 fetchall
。
关于python - 如果我可以直接使用cursor.execute,为什么我要引用cursor.fetchall()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4178828/