I should create a query to pass to sqlite3_prepare_v2.
The query must be dynamic, and must allow me to retrieve all records that, in at least one field, containing at least one of the search filters.
For example:
-fields are f1, f2
-filters are SF1, SF2
I need to create dynamically:
where f1 like ‘%SF1%’ or f1 like ‘%sf2%’ or f2 like ‘%SF1%’ or f2 like ‘%sf2%’
Can you show the code that does what I described?
Thanks in advance for your response.
1 Answer