开发者

Why would I want to reference cursor.fetchall() if I can use cursor.execute directly?

开发者 https://www.devze.com 2023-01-24 20:19 出处:网络
Why would I want to reference cursor.fetchall() if I开发者_JAVA技巧 can use cursor.execute directly?a

Why would I want to reference cursor.fetchall() if I开发者_JAVA技巧 can use cursor.execute directly?a

Thanks


Because cursor.execute() doesn't actually return the data. Presumably you need that, so you need to run fetchall.

0

精彩评论

暂无评论...
验证码 换一张
取 消