If the helpers provided by Active Record aren't enough you can use the execute
method to execute arbitrary SQL:
activerecord直接执行sql语句的写法ActiveRecord::Base.connection.execute
最新推荐文章于 2021-02-13 07:29:07 发布
If the helpers provided by Active Record aren't enough you can use the execute
method to execute arbitrary SQL: