I need to be able to select multiple rows in ruby.
I currently have the following code:
dbh = IBM_DB::connect(databaseName, “”, “”)
sql1 = “Select * from usernames”
sth = IBM_DB::exec(@dbh, sql1)
row1 = IBM_DB::fetch_array(sth)
but this only returns the info for the top row returned. any and all
help is welcomed.