不支持的数据表达式:编号
$res = Db::table('student') ->field(['id'=>'编号','name'=>'姓名']) ->where('id','=',2) ->find();dump(is_null($res)?'木有符合的数据':$res);
$res = Db::table('student') ->field([ 'id AS 编号', 'name AS 姓名' ]) ->where('id','=',2) ->find(); 暂时解决
$res = Db::table('student')
->field([
'id AS 编号',
'name AS 姓名'
])
->where('id','=',2)
->find(); 暂时解决