MySQL Forums
Forum List  »  Ruby

Retriving data from Database
Posted by: Raveendran P
Date: March 01, 2008 05:39AM

This is my code:

res3=@dbh.query("select * from raveendran01;")

Raveendran01 table some values. How can i get it in Single ruby variable or array?

i tried
puts res -->: it shows #<Mysql::Result:0x2c2ff68>

Please help me ????

Regards,
P.Raveendran
http://raveendran.wordpress.com

Options: ReplyQuote


Subject
Written By
Posted
Retriving data from Database
March 01, 2008 05:39AM


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.