I\'m using MySQLdb and Python. I have some basic queries such as this:
c=db.cursor() c.execute(\"SELECT id, rating from video\") results = c.fetchall()
The fetchall method actually returns an iterator, and numpy has the fromiter method to initialize an array from an interator. So, depending on what data is in the table you could combine the two easily, or use an adapter generator.
fetchall