In this way, one can quickly query the key value of a MySQL table. Of course, if we changed the superscript of 'fvalues' to 1 instead of 0, the program would check the second field, and so on. A fuller implementation than this example might also allow the user to define the row of the table. On a simpler level, if one simply wants to read the entire table out, one simply need remove the if loop and to unindent the print command to the appopriate level.
Needless to say, this only scratches the surface of what you can do with MySQLdb. Future tutorials on this module are planned. But if you cannot wait and want to dig in, see the MySQLdb User's Guide here .

