开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜