Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Write SQL in ruby on rails

sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Write #SQL #ruby #rails
ADD COMMENT
Topic
Name
8+7 =