日期:2014-05-17 浏览次数:20733 次
with t as
(select '/upload/2013/07/25/16/800f5ede-e459-4c8e-b2b3-69899f858342.doc' str
from dual
union all
select '/aa.doc'
from dual
union all
select '/c/cc.txt' from dual)
select regexp_replace(str, '.*/(.*)', '\1') from t;
--column_name: 相应列名
--table_name: 相应表名
select substr(column_name,
instr(column_name,
'/',
-1) + 1)
from table_name;