函數獲取子串,帶有可選參數。如果沒有len,將返回從pos unknown到字符串末尾的子字符串。
這裏有壹個可以指定pos為負數,位置是從字符串的末尾到前面的pos字符的位置。
例如:
從dual中選擇substr('abcdefg ',–1);
然後返回結果:g
從dual中選擇substr('abcdefg ',–3,2);
返回結果:ef