I want to search product id from JSON filed but I am not able to search from JSON filed. In JSON field value added in multilevel like the below image.
I am able to search data from other filed like
SELECT equip_id FROM ' . $table. ' where JSON_CONTAINS(category,["1"])
I want to search product by productID, Please let me know how can I achieve this.
I have created a temp table with the below data.
Output when I used below query for above collection
select * from table_name where json_contains(product, '{"productID" : "1"}')