select substr('C:\Documents and Settings\sytl\桌面\各部门反馈\条线分册-财务部.xls',instr('C:\Documents and Settings\sytl\桌面\各部门反馈\条线分册-财务部.xls','\',-1,1)+1) from dual
这个绝对可以!
TRIM(字符 FROM 字符串) 去掉字符串首尾的字符;
示例: select trim('S' from ename) from emp;
select trim('C:\Documents and Settings\sytl\桌面\各部门反馈\' from filename) from file where filename like 'C:\Documents and Settings\sytl\桌面\各部门反馈\%';
select trim('C:\Documents and Settings\dell\tabledest\' from filename) from file where filename like 'C:\Documents and Settings\dell\tabledest\%';
我已经尽力了!
我用的是sql2000
不知道oracle 通用不,你自己测试下
select reverse(left(reverse(filename),charindex('\',reverse(filename))-1)) from file
substr
Length
Instr
三个函数组合可以实现