MySQL Forums
Forum List  »  Ruby

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

This is my code:

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

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

i tried

puts res3 -->: it shows #<Mysql::Result:0x2c2ff68>

Please help me ????

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



Edited 1 time(s). Last edit at 03/01/2008 05:40AM by Raveendran P.

Options: ReplyQuote


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


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.