當前位置:編程學習大全網 - 電腦編程 - oracle pos是什麽功能?

oracle pos是什麽功能?

Oracle函數substr(str1,pos,[len])

函數獲取子串,帶有可選參數。如果沒有len,將返回從pos unknown到字符串末尾的子字符串。

這裏有壹個可以指定pos為負數,位置是從字符串的末尾到前面的pos字符的位置。

例如:

從dual中選擇substr('abcdefg ',–1);

然後返回結果:g

從dual中選擇substr('abcdefg ',–3,2);

返回結果:ef

  • 上一篇:1-3+5-7+9-11+13-15+17-19+21......+101用C語言怎麽編程序
  • 下一篇:博佳機器人和艾克瑞特哪個好
  • copyright 2024編程學習大全網