17,377
社区成员
发帖
与我相关
我的任务
分享
select regexp_replace(
regexp_substr('123456@sina.com.cn', '@[^.]+\.'),
'[@.]',
'') from dual;
select ltrim(regexp_substr('123456@sina.com.cn','@[^.]+',1,1),'@') a from dual
select substr('123456@sina.com.cn',1,instr('123456@sina.com.cn','@') - 1) from dual
1 123456