thinkphp5 链式查询数据库
public function demo2()
{
$result = Db::table('user')
->field(['name','password'])
->where('userid','>',1)
->select();
dump($result);
}
积累知识,创造财富
public function demo2()
{
$result = Db::table('user')
->field(['name','password'])
->where('userid','>',1)
->select();
dump($result);
}