I would like to run a LIKE query in sqlite3 with a safe user deletion. Basically, I want to do something like this:
char* query = "SELECT * FROM table WHERE LOWER(notes) LIKE '%?%'"; sqlite3_stmt* statement; sqlite3_prepare_v2( database, query, -1, &statement, NULL );
But? not respected if inside the LIKE clause. Does anyone know how to do this?
source share