vendredi 29 mai 2015

In sequel, how can I select a modified column?

Basically, I am trying do do this using sequel in ruby:

SELECT number*2 FROM dictionary;

I can use .select(:number) to get number columns "as is", but I have no idea how to return them modified. I tried this (which obviously didn't work):

current_table.select(:number*2)

Aucun commentaire:

Enregistrer un commentaire