There is a case:the name of my song in Oracle is called "love love",and I need find it out whenever user query by "Love","love" or "lOVe",and so on.I used this sentance: Song.find(:all,:conditions=>[''lower(name) like ?'',''%''+@keyword+''%'']) It''s just fine in Oracle,but it cann''t work with MySQL.That is, when I change my DB from Oracle to MySQL,I will need change my query sentance,that''s bad! Is there some better way to finish my work?Thx! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---