本文介绍了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文档缺少详细信息?
发布评论