获得子字符串的函数, 参数可选, 没有len的时候从返回从pos未知到字符串尾的子字符串。
这里有个可以指定pos为负数, 位置就是从字符串尾往前pos个字符的位置开始
例如:
select substr(‘abcdefg’, –1) from dual;
则返回结果 : g
select substr(‘abcdefg’, –3, 2) from dual;
返回结果 : ef
posted on 2010-05-06 14:49 Samuelee 阅读(3566) 评论(0) 编辑 收藏 举报