I wonder if I can achieve the following with plain PHP:
I want to retrieve a row in a database based on a value that is in a json string. The string looks like the following:
{
"ext":{
"pdf":3
},
"count":3
}
I want to retrieve all the rows where PDF equals 4.
Is this something that is possible in PHP? To make a query and only search for a Json Value. Like this:
SELECT id FROM table WHERE ext->pdf = 4
I tried to search it for myself only I keep getting results of webpages that discuss encoding query results to Json instead of what I am trying to achieve.