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

          積分與排名

          • 積分 - 2296369
          • 排名 - 3

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 佛坪县| 砀山县| 东兰县| 平塘县| 金秀| 罗甸县| 平潭县| 白沙| 新安县| 吉木乃县| 洪洞县| 芦溪县| 喀喇沁旗| 青海省| 荆州市| 若羌县| 安国市| 山东省| 英德市| 阳东县| 长武县| 富顺县| 贵港市| 长垣县| 上杭县| 繁峙县| 泽州县| 丽江市| 宜君县| 樟树市| 新和县| 宣威市| 闵行区| 古浪县| 织金县| 太原市| 德阳市| 连南| 汝州市| 湘潭县| 阿鲁科尔沁旗|