we can use MYSQL queries in rails, by using the following connection method
connection = ActiveRecord::Base.connection();
output = connection.execute("select test from test_table
output.each do |row|
puts row[0]
the output will be an array
No comments:
Post a Comment