Sunday, 18 December 2016

yii2 framework between query


between()

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


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

yii2 framework between query

No comments:

Post a Comment