如何在oracle中截取某个字段中的备份字段
data/attachement/pic/site1/20050914/7102_1.jpg
在oracle数据库中怎样将这个字符串截取成7102_1.jpg
select regexp_substr(aa,'[^/]+',1,6) from (select 'data/attachement/pic/site1/20050914/7102_1.jpg' aa from dual) ;
SQL> select regexp_substr(aa,'[^/]+',1,6) from (
2 select 'data/attachement/pic/site1/20050914/7102_1.jpg' aa from dual);
REGEXP_SUB
----------
7102_1.jpg
SQL>