[Tutor] sqlite question

Peter Otten __peter__ at web.de
Tue Jun 11 13:03:19 CEST 2013


Todd Matsumoto wrote:

[Please don't top-post]

> On Tue, Jun 11, 2013 at 12:20 PM, Khalid Al-Ghamdi
> <emailkgnow at gmail.com>wrote:

>>    1. >>> for data in cur.execute('select badge from sched'):
>>    2.         r_data()[data]

> I think you are missing the fetch call. The cursor only executed your
> query, but hasn't fetched any thing out.

No, sqlite supports iterating over the cursor directly.



More information about the Tutor mailing list