database - How to replace last occurrence of a substring in MYSQL? -


How can I change the last occurrence of a substrings with an empty string in MYSQL? MYSQL

String: "American Corp National Corp"

Search String: "Corp"

Expected Output: "American Corp National"

Can someone suggest?

Try:

  reverse (concat (left (reverse 'American Corp National Corp'), Instar (Reverse ('American Corp National Corp'), Reverse ('Corp') - 1), Upstroke (Reverse ('American Corp National Corp'), Instar (Reverse (American Corp Result ('corp')) + Length ('corp')) Results   

()

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -