
MySQLdb为此有一个单独的游标类DictCursor。您可以将要使用的游标类传递给MySQLdb.connect():
import MySQLdb.cursorsMySQLdb.connect(host='...', cursorclass=MySQLdb.cursors.DictCursor)
欢迎分享,转载请注明来源:内存溢出

MySQLdb为此有一个单独的游标类DictCursor。您可以将要使用的游标类传递给MySQLdb.connect():
import MySQLdb.cursorsMySQLdb.connect(host='...', cursorclass=MySQLdb.cursors.DictCursor)
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)