截取特定符号间的数据,急! 对邮箱数据进行提取:例如:[email protected],[email protected],[email protected]现在要提'@'和@之后第一个'.'之间的数据,结果应为sina、163、hotmail,请问如何截取?谢谢。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select ltrim(regexp_substr('[email protected]','@[^.]+',1,1),'@') a from dual select regexp_replace( regexp_substr('[email protected]', '@[^.]+\.'), '[@.]', '') from dual; 多谢那么如果截取的是'@'和最后一个'.'之间的数据呢,例如[email protected],截取的是vip.sina.com? select substr('[email protected]',1,instr('[email protected]','@') - 1) from dual1 123456 求助,如何使用SQL提取身份证号码中的连续一段数字Oracle,我是新手!莫怪! 关于Oracle中序列的导入导出,求高手指点 请教oralce 10G oem打不开问题 oracle text全文检索【急】 数据库导入导出问题 sql查询的问题 请问关于时间筛选的问题 关于ORA-00604/ORA-04031问题 如何插入指定日期格式的值? 急!!一个SQL语句问题 各位大侠来看看吧oracle中数字补零的问题 ftp通道信道建立失败
select ltrim(regexp_substr('[email protected]','@[^.]+',1,1),'@') a from dual
regexp_substr('[email protected]', '@[^.]+\.'),
'[@.]',
'') from dual;
那么如果截取的是'@'和最后一个'.'之间的数据呢,例如[email protected],截取的是vip.sina.com?
select substr('[email protected]',1,instr('[email protected]','@') - 1) from dual1 123456