gpt4 book ai didi

python - 如果我可以直接使用cursor.execute,为什么我要引用cursor.fetchall()?

转载 作者:行者123 更新时间:2023-12-01 06:14:13 25 4
gpt4 key购买 nike

如果我可以直接使用cursor.execute,为什么还要引用cursor.fetchall()?a

谢谢

最佳答案

因为cursor.execute()实际上并不返回数据。想必您需要它,因此您需要运行 fetchall

关于python - 如果我可以直接使用cursor.execute,为什么我要引用cursor.fetchall()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4178828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com