-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Karl Lautman wrote: > Thanks, Roger. Your second suggestion does the trick. The first, however, > returns: <sqlite3.Cursor object at 0x012CC1A0>. Can you explain why? > Thanks again.
Both pysqlite make the cursor an iterator. Remember that a query can return zero, one or more rows of data. As an iterator you do this: for row in cursor.execute("select * from table"): print row Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkFhzAACgkQmOOfHg372QQf/ACfUofm8OLadl+KtU1nEeaal7pi DnQAnRGeRL4CKaSD3D8PTXLYGm+XRSoy =9t27 -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users