ITPub博客

首页 > 数据库 > Oracle > oracle的substr函数的用法

oracle的substr函数的用法

原创 Oracle 作者:zqingfu2008 时间:2007-05-28 13:14:44 0 删除 编辑
oracle的substr函数的用法
[@more@]取得字符串中指定起始位置和长度的字符串 substr( string, start_position, [ length ] )
如:
substr('This is a test', 6, 2) would return 'is'
substr('This is a test', 6) would return 'is a test'
substr('TechOnTheNet', -3, 3) would return 'Net'
substr('TechOnTheNet', -6, 3) would return 'The'

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7420887/viewspace-916519/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: avl,lag函数巧用
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2007-12-22

  • 博文量
    3
  • 访问量
    2639