module for working with the result set

john fabiani jfabiani at yolo.com
Mon May 17 19:07:39 EDT 2004


Paul McNett wrote:

> john fabiani writes:
> 
> 
>>mydata=cursor.fetchmany(10)
>>for field in mydata[0]:
>>   print mydata[0][field]
> 
> 
> I think you want:
> 
> mydata=cursor.fetchmany(10)
> 
> for record in mydata:
> 	print "--- record ---"
> 	for field in record:
> 		print field
> 
> 
Hi Paul,

What I'd like to see is the data.  So I can do
Scan
  list the rows somewhat like a browse window.

endscan

But I don't even understand what is returned.  The first part appears 
perfect but the rest who knows.

John



More information about the Python-list mailing list