SQLite Forum

The second query return nothing
Login
> I can run sqlite3_exec () successfully for the first time, then continue run sqlite3_exec() returns nothing.

The code you have shown calls sqlite3_exec() exactly once. That seems inconsistent with "continue run sqlite3_exec()". I guess you mean either: "My additional calls, which are to be assumed are just like the one shown, return nothing." ; or "I expected the callback to be run multiple times when sqlite3_exec() is called once." I suggest you clarify before expecting answers. I can guess what you are asking, then answer each of the guessed questions, but that is too inefficient for my taste.

I also see that you are adding an integer to a void *. There is a compiler which allows that, but most do not. I suggest you stop doing that before it becomes a habit.