YII2 模糊查询怎么做

YII2 模糊查询怎么做


呼啦一阵风
浏览 1128回答 1
1回答

慕哥6287543

$rows = (new \yii\db\Query())->from('admin')->where("status=:status and (username like :keyword or `name` like :keyword )")->addParams([':status'=>1,':keyword'=>'%陈%'])->all();
打开App,查看更多内容
随时随地看视频慕课网APP