Answer the question
In order to leave comments, you need to log in
How to make a query with a condition where two dates are the same?
Hey! You need to make a request like this.
SELECT * FROM user WHERE created_at = updated_at
$query = User::find()
->filterWhere(['=', 'created_at', 'updated_at'])
->all();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question