ITPub博客

首页 > 数据库 > > mysql写过程解析json数组

mysql写过程解析json数组

作者:zhjjj 时间:2019-08-28 09:27:25 0 删除 编辑

现在有字段price,格式:[json格式,json格式,……]

使用查询语句:

select json_length(price) from product where id = (SELECT id from product LIMIT 2,1); 语句不报错。

但把语句放到进程里,就报price格式错误:Invalid JSON text in argument 1 to function json_length: "Incorrect hex digit after \u escape in string." at position 499.

求大神解惑。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/717/viewspace-3143820/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-12

  • 博文量
    231
  • 访问量
    1889