MySql select string minus one charracter


For example: I have a word like "GoodDay" that i want to search in the DB, but in the DB there is a word "Good_Day"...

Is there a function in MySql to check this word but tell it to ignore the"_" ?

Something like: SELECT text FROM db_name WHERE ingnore(text , '_') = 'GoodDay'

P.S. Beside using the %% or LIKE function

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
You might find some usefulness in the concept of a regular expression to eliminate non-alphabetic characters.  Not sure of the syntax, but I know MySQL has a REGEX built into it.  Another concept is the Levenshtein distance between strings.  It can be computationally intensive.  A good description of it is on the PHP web site.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wonder what fulltext would do with that.
NovoWebAuthor Commented:
I have check the Levenshtein function.. great but i will have to search all the DB in a loop to find one or mayby two, and i don't want 2 results.

I am tying to do something with REGEX but nothing so far...
Ray PaseurCommented:
Don't want two results?  How can we help you then?  Please show us a test data set and a desired result.  Armed with that information we should be able to help you bridge the gap.
NovoWebAuthor Commented:
The function was right but i have to figure the exact expression
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.