I'm trying to do a query that gets me just the values for a column in an
array.
When i do
db[:table].select(:column).to_a
it returns something like this:
{:column=>"value1"}
{:column=>"value2"}
I need it to return something like this
{"value1"}
I'm trying to use that array in a ruby script like this:
array = [Values returned from db]
puts array[1]
puts array[0]
{"value2"}
is this possible?
I'm using the values returned in a ruby/watir script.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sequel-talk/-/HCcNvK7_oAAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.