L
L
LightSid2016-11-10 18:01:07
MySQL
LightSid, 2016-11-10 18:01:07

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

1 answer(s)
M
Maxim Timofeev, 2016-11-10
@LightSid

MyModel::find()->where(['>','id',3])->one();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question