I'm using MySQLdb in python to connect to a mysql database (duh) and am really missing the functionality that's built into PHP, namely:
mysql_fetch_array
and mysql_fetch_object
What is the equivalent in Python so that I can start getting my scripts ported?
.fetch()
and.fetchall()
on cursor objects... – Jon Clements Jul 24 '12 at 9:37mysql_*()
is outdated and should be used anymore. UseMySQLi
orPDO_MySQL
instead. – KingCrunch Jul 24 '12 at 9:48