Python-MySQL error 본문

Programming

Python-MySQL error

halatha 2013. 3. 25. 10:29

Python: tuple indices must be integers, not str when selecting from mysql table

http://stackoverflow.com/questions/12325234/python-tuple-indices-must-be-integers-not-str-when-selecting-from-mysql-table


check cursor type first, being dict cursor, use dict key, or use tuple index


How to see the real SQL query in Python cursor.execute

use cursor._executed

Comments