Mysql
 sql >> Database >  >> RDS >> Mysql

Come eseguire una semplice query MySQL utilizzando i binari

movie_title = 'Planet of the Apes'
sql = "SELECT * FROM movies WHERE title = #{ActiveRecord::Base.sanitize(movie_title)}"
ActiveRecord::Base.connection.execute(sql)