REGEXP_REPLACE()函数用于模式匹配。它通过匹配字符来替换给定的字符串字符。 REGEXP_REPLACE(expr, pat, repl[, pos[, occurrence[, match_type]]]) Replaces occurrences in the string expr that match the regular expression specified by the pattern pat with the replacement string repl, and returns the...
REGEXP_REPLACE(expr, pat, repl[, pos[, occurrence[, match_type]]])8.0以下查找和替换是分开的 SELECT name FROM person_tbl WHERE name REGEXP '^st';