Ruby Mysql inset variable
Hi All,
k = "50"
my = Mysql::new("localhost", "root", "pass", "table")
my.query("INSERT INTO table VALUES('2008-05', #{k}, 324)")
./Class.rb:212:in `query': Unknown column '50' in 'field list'
(Mysql::Error)
How do I insert a variable into a row?
Thanks
P.Raveendran (Bug Identifier Justin)
http://raveendran.wordpress.com
Subject
Written By
Posted
Ruby Mysql inset variable
July 01, 2008 11:48PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.