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.
我有一个带有电子邮件地址的表(例如“peter.test@example.com”),我想修剪地址以接收名称和域。
select LTRIM(Addressfield, '@') AS NAME from table
但结果与表格字段完全相同,我希望“peter.test”
该regexp_substr()函数可用于获得所需的输出:
regexp_substr()
select REGEXP_SUBSTR('peter.test@example.com','[^@]+') as "NAME" from dual