提交 8f092302 编写于 作者: K Konstantinos Rousis

[ci skip] fix guides example on arbitrary SQL execution

上级 69881fb0
......@@ -501,7 +501,7 @@ If the helpers provided by Active Record aren't enough you can use the `execute`
method to execute arbitrary SQL:
```ruby
Product.connection.execute('UPDATE `products` SET `price`=`free` WHERE 1')
Product.connection.execute("UPDATE products SET price = 'free' WHERE 1=1")
```
For more details and examples of individual methods, check the API documentation.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册