Categories
Yii2 Active Record How to write greater than or equal to query?
Please tell me how to correctly set the SQL query Active Record. There is a table in which there is a field 'id'. You need to get records where:
id >= 4
Answer the question
In order to leave comments, you need to log in
MyModel::find()->where(['>','id',3])->one();
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question