Du kan skicka dictionary=True till markören för att få den att returnera en ordbok.
cursor = cnx.cursor(dictionary=True)
Se dokumenten på MySQLCursorDict .
Du kan skicka dictionary=True till markören för att få den att returnera en ordbok.
cursor = cnx.cursor(dictionary=True)
Se dokumenten på MySQLCursorDict .