Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQLdbPython 2.7を使用して更新クエリを実行しています。すべての ID を取得することによって影響を受ける行を知ることは可能ですか?
MySQLdb
を使用して、影響を受ける行の数を取得できますcursor.rowcount。mysql API はこれをサポートしていないため、どの行が影響を受けるかについての情報は入手できません。
cursor.rowcount