我正在使用MySQL 5.6,我的一个表字段包含JSON数据。使用以下查询时出现语法错误 -
SELECT * FROM products WHERE device_id = '1212'and product_id = '54'and option = '"{"229":"20"}"'
字段选项的值为{"229":"20"}
我收到以下错误 -
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option = '"{"229":"20"}"'
LIMIT 0, 25' at line 1
请提出任何解决方案,非常感谢!!!