I have a row in mytable with this value '{"test":"Hello World"}' in column1.
If I search the database with
SELECT *
FROM mytable
WHERE column1 LIKE '%Hello World%'
I get nothing. If I change the query to
SELECT *
FROM mytable
WHERE column1 LIKE '%Hello%'.
I get results but this is not what I want because this returns unwanted rows.
Is something wrong with the space character between the two words?
My code looks like this:
Cursor cursor=db.rawQuery("SELECT * FROM mytable WHERE column1 LIKE '%Hello World%'",null);
if(cursor.moveToFirst()) {
while(cursor.moveToNext()) {
//log results
...
}
}