閱讀898 返回首頁    go 微軟 go windows


Oracle中的substr方法


oracle中的substr比較給力,以字符串abcde為例

 

select substr('abcde',1,3) as str from dual
結果abc


select substr('abcde',3,5) as str from dual
結果cde


select substr('abcde',3,50) as str from dual
不報錯,結果cde


從1開始,到幾就是第幾位,簡單易用

 

 

最後更新:2017-04-02 16:48:14

  上一篇:go ASP.NET 信任級別和策略文件
  下一篇:go What does AspCompat="true" mean and when should I use it?