How to get data from database as string

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs