Create a new instance of yii db Query.
Offset() define which is starting point and limit() define the number of rows.
$query = (new Query())->select(['id'])->from('user'); $query->limit(10)->offset(10);
No comments:
Post a Comment