Dev_lex <[email protected]> wrote: > Hello everyone ! > I've got a new question : > > I would like to do this : > > sqlite3_exec(query_handle.db,"SELECT * FROM DHSS", callback, 0, NULL); > > But I need to prepare the statement.. So I can prepare the statement : > "SELECT * FROM DHSS" , but how can I call the callback with sqlite3_step?
With sqlite3_step, you don't use or need a callback. You just call sqlite3_step in a loop until it returns SQLITE_DONE, and for each row, retrieve columns with one of sqlite3_column* functions. Whatever logic currently resides in your callback, move it inside this loop. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

