阅读背景:

我如何看到由Ruby on Rails中的给定ActiveRecord查询生成的SQL呢

来源:互联网 

I would like to see the SQL statement that a given ActiveRecord Query will generate. I recognize I can get this information from the log after the query has been issued, but I'm wondering if there is a method that can be called on and ActiveRecord Query.I would like to see the SQL statement that a gi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: