Python MYSQLdb文档缺少详细信息?

编程入门 行业动态 更新时间:2024-10-27 21:16:08
本文介绍了Python MYSQLdb文档缺少详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想了解 MySQLdb 文档。我只是想知道有没有从那里缺少的东西。例如,我试图看看rowcount(常数)实际上是什么,但是在文档中没有看到它。

I am trying to make sense of MySQLdb documentation. I was just wondering if there are things missing from there. For example, I am trying to see what "rowcount" (a constant) actually does, but am not seeing it anywhere in the documentation.

文档不完整

感谢。

推荐答案

Python数据库模块的主要文档来源是 DB-API 2.0规范:

The primary source of documentation for Python database modules is the DB-API 2.0 specification:

.rowcount This read-only attribute specifies the number of rows that the last .execute*() produced (for DQL statements like 'select') or affected (for DML statements like 'update' or 'insert'). The attribute is -1 in case no .execute*() has been performed on the cursor or the rowcount of the last operation is cannot be determined by the interface. [7] Note: Future versions of the DB API specification could redefine the latter case to have the object return None instead of -1.

更多推荐

Python MYSQLdb文档缺少详细信息?

本文发布于:2023-10-09 21:12:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1476796.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:详细信息   文档   Python   MYSQLdb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!