extract mysql php_php – MySQL错误代码:1305.在MySQL客户端版本中不存在FUNCTION JSON_EXTRACT:5.5.52...

Goal :- json_extract does not exist error.

我确实有这样的消息体.

< message type = "chat"

to = "socialapp_233@22.52.258.256"

from = "socialapp_6@22.52.258.256/9fs4kgn090" > < body > {

"opponent_xmpp_id": "socialapp_233@22.52.258.256","latest_message_id": "6233"

} < /body>http:/ / jabber.org / protocol / chatstates < /active>

我试图提取opponent_xmpp_id和latest_message_id.

因为我写了一个像下面的查询.

SELECT LEFT(ExtractValue( stanza,"//@from" ),LOCATE("@",ExtractValue( stanza,"//@from" )) - 1),LEFT(ExtractValue( stanza,"//@to" ),"//@to" )) - 1),ExtractValue(stanza,"//body"),"//@chattype"),TRIM(BOTH '"' FROM json_extract(ExtractValue(stanza,'$.opponent_xmpp_id')) AS opponent_xmpp_id,json_extract(ExtractValue(stanza,'$.latest_message_id') AS latest_message_id

FROM

ofOffline

导致错误

1305 – FUNCTION databaseName.json_extract does not exist

根据我搜索其支持>仅限MysqL 5.7版本.

那么在MysqL客户端版本中是否有任何函数可以像json_extract一样进行simmilar工作:5.5.52?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值