Mysql – Find matching integer in JSON
I want to find 123 in a JSON string in MySQL. Here is my query : SELECT * FROM `reports` WHERE JSON_CONTAINS(json_data, 123, "$.respCode"); When I run this code I get this error Error Code: 3146. Invalid data type for…