错误原因:DBAL模块版本不对
修改 composer.json 中 “doctrine/dbal”: “^3.3”, 为 “doctrine/dbal”: “^2.13”,
composer update
解决!
错误原因:DBAL模块版本不对
修改 composer.json 中 “doctrine/dbal”: “^3.3”, 为 “doctrine/dbal”: “^2.13”,
composer update
解决!
测试环境
CentOS Linux release 7.4.1708
10.2.43-MariaDB (注意mysql版本,MariaDB5.7开始支持原生json)
PHP 7.4.27
select
JSON_UNQUOTE(JSON_EXTRACT(json, "$.name")) AS primQuestion
from `DBName`.TableName limit 10;
JSON_EXTRACT 取值
JSON_UNQUOTE 去掉引号,并转成utf8展示