[moka同窗笔记]yII2获取最后一条数据

$model = User::find()->select('name')->where(['is_deleted'=>0])->orderBy('update_at DESC)->limit(1)->all();
相关文章
相关标签/搜索