Unsupported data expression: number
$res = Db::table('student')
->field(['id'=>'number','name '=>'Name'])
->where('id','=',2)
->find();
dump(is_null($res)?'Wood There is matching data':$res);
胤蠡2019-01-14 11:57:12
$res = Db::table('student')
->field([
'id AS number',
'name AS name'
])
- >where('id','=',2)
->find(); Temporary solution