I have table name users
contain column name user_email
. user_email
column having data in json format like below.
[
{
"card_email_id": "98",
"card_id": "88",
"email": "[email protected]",
"type": "Home"
},
{
"card_email_id": "99",
"card_id": "88",
"email": "[email protected]",
"type": "Home"
}
]
I want to query that search value from json string in only email
values.
I already tried REGEXP but that is not supported in sqlite.
is this possible using LIKE
operator or something else?
In SQLite there is a JSON1 extension that you can use it like this:
And related question about
LIKE
- HTH ;).