Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:sql:functions:lpad [2009/12/07 14:26]
tdo
dev:sql:functions:lpad [2016/06/28 22:38]
Line 1: Line 1:
-{{page>:​top_add&​nofooter&​noeditbtn}} 
-<​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​ 
-====== Omnidex SQL Function: $LPAD ====== 
-{{page>:​sql_bar&​nofooter&​noeditbtn}} 
-===== Description ===== 
-The $LPAD function adds pad characters to the left of a character string up to the specified total length. 
  
-The return data type is C STRING of length specified in the return_length parameter + 1. 
- 
-===== Syntax ===== 
-  $LPAD( <​column_spec | '​string'>​ , return_length [ ,​pad_character ] ) 
- 
-== < column_spec,​ string > == 
-Required. The string to be "​padded"​. If the length of the string is longer than n, the portion of the string that fits into n is returned. 
- 
-== return_length == 
-Required. n is the total length of the return value ( 0 < n <= 255) 
- 
-== pad_character == 
-Optional. pad evaluates to a single character. The default is the space character. 
-===== Example ===== 
-==== Example 1 ==== 
-<code SQL> 
-SELECT ​ 
-$LPAD(COMPANY,​ 45, '​*'​), ​ 
-$RPAD(COMPANY,​ 45, '#'​) ​ 
-FROM CUSTOMERS ​ 
-WHERE COMPANY='​SYSTEMS'​ 
- 
-*****Dynamic Information Systems Corporation 
-Dynamic Information Systems Corporation ##### 
-</​code>​ 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
dev/sql/functions/lpad.txt ยท Last modified: 2016/06/28 22:38 (external edit)