I have a script where I am trying to match new job names with existing job names in the database.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
The Staging.TMP_OC1 table has one record for the new position, in this case Software Developer,USA. I want to match it to the database's existing job title "Software Developer". The regex code above works for some positions but not others. Please help develop a more comprehensive plan.
I am using mysql V8.
P粉5093831502024-04-07 00:55:41
You don't need to test the beginning/end of the string; these are "word boundaries".
MySQL 8.0 uses \b
as two word boundaries instead of [[:<:]]
and [[:>:]]
In some cases, 8.0 requires doubling backslashes.
This may work:
1 |
|