On 12/06/2010 04:09 PM, Igor Tandetnik wrote:
> Jonathan Haws<jonathan.h...@sdl.usu.edu>  wrote:
>> I am having some troubles figuring out how I can access multiple rows in a 
>> table..
>>
>> For example, I have a table that I am trying to "SELECT * FROM some_table;". 
>>  For each row in the table, my callback function is
>> called.
>
> I predict you'll find it much easier to use sqlite3_prepare / sqlite3_step 
> interface, in place of sqlite3_exec. Instead of having a callback, you simply 
> loop over all the rows and do whatever you want with each one.

I will take a look at that.  It may be what I need.

Thanks for the help.

Jonathan

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to