提交 ceca3a05 编写于 作者: P Pratik Naik

Improve example for having()

上级 767eca49
......@@ -496,7 +496,7 @@ SQL uses the +HAVING+ clause to specify conditions on the +GROUP BY+ fields. You
For example:
<ruby>
Order.group("date(created_at)".having(["created_at > ?", 1.month.ago])
Order.group("date(created_at)".having("created_at > ?", 1.month.ago)
</ruby>
The SQL that would be executed would be something like this:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册