On Nov 2, 9:47 am, bsdev <[email protected]> wrote:
> Thank you very much, that's working.
>
> But what should I do if I have more than one result row?
> Like users = DB[:USER].filter(:CITY => "New York")
>
> Thanks & Regards.

You can just iterate over the results.

  users.each{|u| @name = u[:EMAIL]; ...}

You'd probably should state what you are actually trying to do.  For
example, if you want an array with all of the emails for users in new
york:

  @emails = DB[:USER].filter(:CITY => "New York").map(:EMAIL)

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to