Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

rails run native ssql query

sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #run #native #ssql #query
ADD COMMENT
Topic
Name
2+4 =