如何获取sqlalchemy中受影响的行数? [英] How to get number of affected rows in sqlalchemy?

查看:66
本文介绍了如何获取sqlalchemy中受影响的行数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于 Python 和 sqlalchemy 模块的问题.cursor.rowcount 在 sqlalchemy Python 中的等价物是什么?

I have one question concerning Python and the sqlalchemy module. What is the equivalent for cursor.rowcount in the sqlalchemy Python?

推荐答案

ResultProxy 对象有一个 rowcount 属性.

ResultProxy objects have a rowcount property as well.

这篇关于如何获取sqlalchemy中受影响的行数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆