thinkphp6 json字段查询错误

浏览:1126 发布日期:2020/12/16 分类:ThinkPHP6专区 关键字: json 查询 thinkphp6
查询条件为JSON数据

$user = Db::name('cs')
->json(['info'])
->where('info->nickname','ThinkPHP')
->find();

抛出错误 Syntax error or access violation: 1305 FUNCTION itlua.json_extract does not exist in /www/wwwroot/itlua.com/chen/vendor/topthink/think-orm/src/db/PDOConnection.php:768



$user = Db::name('cs')
->json(['info'])
->find();

不加where返回的结果info字段是object类型


为什么加了where就抛出错误?我跟着官方文档来学习的呀????
最佳答案
评论( 相关
后面还有条评论,点击查看>>