How do I grab the error code if sqlite3_prepare_v2() returns one? How do I grab the error code if sqlite3_prepare_v2() returns one? sqlite sqlite

How do I grab the error code if sqlite3_prepare_v2() returns one?


If you want to get an error message, you must indeed call sqlite3_errmsg.

sqlite3_exec would give you the same string.