[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

how to get data from database as string

Maung Augn

6/26/2007 11:06:00 PM

Hi all,

How can i read a cell from database and retrieve as a string in ruby
with OCI8?
I was doing like this and didn't succeed:
cursor=conn.parse("Select name
From empl where ssn=123456789")
cursor.define(1, String, 20)
cursor.exec()
puts cursor
conn.logoff

Puts statement only print the memory address, doesn't print the string.

Thanks,
Maung

--
Posted via http://www.ruby-....