search

Home  >  Q&A  >  body text

SQL Chinese query cannot be found

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);

胤蠡胤蠡2202 days ago1274

reply all(2)I'll reply

  • 胤蠡

    胤蠡2019-01-14 11:57:12

    $res = Db::table('student')
    ->field([
    'id AS number',
    'name AS name'
    ])
    - >where('id','=',2)
    ->find(); Temporary solution

    reply
    0
  • Cancelreply