Javascript 在WHERE条件下使用JSON_EXTRACT
如何在JSON字段中添加基于值的条件,我可以使用Javascript 在WHERE条件下使用JSON_EXTRACT,javascript,mysql,Javascript,Mysql,如何在JSON字段中添加基于值的条件,我可以使用 SELECT JSON_EXTRACT(transaction_data, "$.giftshop_product_data.matrix_product_id") from user_transactions order by created_at desc; 但是JSON_提取在clouse中不起作用 SELECT JSON_EXTRACT(transaction_data, "$.giftshop_product_data.matr
SELECT JSON_EXTRACT(transaction_data, "$.giftshop_product_data.matrix_product_id") from user_transactions order by created_at desc;
但是JSON_提取在clouse中不起作用
SELECT JSON_EXTRACT(transaction_data, "$.giftshop_product_data.matrix_product_id") from user_transactions where JSON_EXTRACT(transaction_data, "$.giftshop_product_data.matrix_product_id") = "133" order by created_at desc;
错误
错误代码:3141。函数的参数1中的JSON文本无效
json_摘录:“字符串中缺少结束引号。”位于
第26位