K
K
king19902016-09-13 16:47:34
MySQL
king1990, 2016-09-13 16:47:34

How to make a request in YII2?

how to make a query to the database in Yii2, if in its pure form it looks like this:

SELECT MONTH( FROM_UNIXTIME( dt_start ) ) AS month , COUNT( * ) 
FROM EVENTS 
GROUP BY MONTH( FROM_UNIXTIME( dt_start ) )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-09-13
@slo_nik

Good afternoon.
I think these links will help you
first
second

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question