> I’m using Firebird 2.5.3, and I am looking for text in a emo field, eg. > I’m tempted to do something like > Select * from mytable t where lowercase(t.mymemo) like ‘%find me%’ > but since this memo field could be enormous, I’m guessing that wold be > horribly inefficient.
I use upper() for that and it's surprisingly fast (lowercase shouldn't be different). What you can do is try to use a case insensitive collation like unicode_ci or unicode_ci_ai, but I don't know if that really speeds things up. Regards Stefan ------------------------------------ ------------------------------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Visit http://www.firebirdsql.org and click the Documentation item on the main (top) menu. Try FAQ and other links from the left-side menu there. Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ------------------------------------ Yahoo Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/firebird-support/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/firebird-support/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo Groups is subject to: https://info.yahoo.com/legal/us/yahoo/utos/terms/
