[Tutor] tutorial for dbapi 2.0 how to use data

John Fabiani jfabiani at yolo.com
Tue May 11 14:22:27 EDT 2004


Hi,
mycur=con.cursor()
mycur.execute("select * from sosord")
mydata=mycur.fetchmany(10)

The above works and returns data.  But know I need to understand how to 
view the data.  Maybe there is a way to convert the returned list into a 
dictionary.  A dictionary would allow me to get information by key (the 
field name).  Anyway, is there some paper or tutorial I can read on how 
to view the return data?
TIA
John



More information about the Tutor mailing list