I have a MySQL query
select query from HR_Health_Logs where query REGEXP 'CPU|MAC|PC|abacus|calculator|laptop|mainframe|microcomputer|minicomputer|machine';
Except that the regex is much longer, and contains many synonyms and misspellings.
I need to cut this short and have a table with all the synonyms and misspellings, so that I can avoid this very long query. So I’m looking for something like
select query from HR_Health_Logs where query REGEXP '**HAVE A TABLE WITH ALL MY SYNONYMS AND MISSPELLINGS SEARCHED HERE**';
1 Answer