posts - 297,  comments - 1618,  trackbacks - 0

          原文出處:http://mfm088.itpub.net/post/22599/250400
          Oracle/PLSQL: Lpad Function

          In Oracle/PLSQL, the lpad function pads the left-side of a string with a specific set of characters.

          The syntax for the lpad function is:

          lpad( string1, padded_length, [ pad_string ] )

          string1 is the string to pad characters to (the left-hand side).

          padded_length is the number of characters to return. If the padded_length is smaller than the original string, the lpad function will truncate the string to the size of padded_length.

          pad_string is optional. This is the string that will be padded to the left-hand side of string1. If this parameter is omitted, the lpad function will pad spaces to the left-side of string1.

          For example:

          lpad('tech', 7); would return ' tech'
          lpad('tech', 2); would return 'te'
          lpad('tech', 8, '0'); would return '0000tech'
          lpad('tech on the net', 15, 'z'); would return 'tech on the net'
          lpad('tech on the net', 16, 'z'); would return 'ztech on the net'
           
          posted on 2007-04-26 11:00 阿蜜果 閱讀(769) 評論(0)  編輯  收藏 所屬分類: Oracle
          <2007年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

                生活將我們磨圓,是為了讓我們滾得更遠——“圓”來如此。
                我的作品:
                玩轉Axure RP  (2015年12月出版)
                

                Power Designer系統分析與建模實戰  (2015年7月出版)
                
               Struts2+Hibernate3+Spring2   (2010年5月出版)
               

          留言簿(263)

          隨筆分類

          隨筆檔案

          文章分類

          相冊

          關注blog

          積分與排名

          • 積分 - 2296322
          • 排名 - 3

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 靖边县| 东丽区| 舟曲县| 万安县| 焉耆| 玉溪市| 林芝县| 阳新县| 牙克石市| 萍乡市| 高淳县| 长治市| 正安县| 周至县| 子洲县| 武胜县| 察隅县| 大足县| 马尔康县| 且末县| 三江| 湖北省| 阳西县| 定陶县| 睢宁县| 白河县| 恩平市| 吐鲁番市| 绥德县| 明溪县| 富顺县| 封丘县| 伊金霍洛旗| 浦江县| 宣恩县| 五大连池市| 锡林浩特市| 静宁县| 泰州市| 深州市| 博白县|