sqlite3_get_table defined as follows:
int sqlite3_get_table( sqlite3 *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn, char **pzErrmsg );
As stated in the document, it can get a convenient result table and is implemented as a wrapper around sqlite3_exec ().
But now this is not recommended:
This is an outdated interface that is retained for backward compatibility. Using this interface is not recommended.
But if I use sqlite3_exec , I need to write an additional callback function. This is harder.
So my question is, what is the main problem of this interface? Why should it be obsolete?
See http://www.sqlite.org/c3ref/free_table.html for more details.
source share