Saturday, 18 February 2017

Yii2 Between mysql Query


$model = User::find()->select('username')->asArray()->where('userid between 1 and 5')->all();

OUTPUT

  SELECT `username` FROM `tbl_user` WHERE userid between 1 and 5

No comments:

Post a Comment