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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
how to get data from database as string
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password