Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要查看一个字符串,并在其中找到第一个非字母数字字符,然后截断从该非字母字符到字符串末尾的所有内容。
我知道REGEXP_INSTR可能参与其中,但无法弄清楚。
REGEXP_INSTR
任何人都可以提供一些帮助吗?
您可以为此编写正则表达式。
select regexp_replace(column_name, '[a-zA-Z0-9].*', '') from mytable;
这将替换$$6th$%为$$.
$$6th$%
$$