@H_301_6@ select count(id),year(created_at),month(created_at) from table where published_state = 'published' group by year(created_at),month(created_at);
我尝试过类似的东西:
@H_301_6@results = Table.select('count(id),month(created_at)').where('published_state LIKE ?','published').group('year(created_at),month(created_at)')
但它不会返回我想要的东西.
我只是得到了回报
@H_301_6@[#