Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
dev:sql:functions:lj [2009/12/07 15:27]
tdo created
dev:sql:functions:lj [2010/07/09 03:34]
els
Line 1: Line 1:
 {{page>:​top_add&​nofooter&​noeditbtn}} {{page>:​top_add&​nofooter&​noeditbtn}}
-<html><div align="​center"><​span style="​color:red">​DRAFT</​span></​div></​html>​+{{page>:sql_bar&​nofooter&​noeditbtn}}
 ====== Omnidex SQL Function: $LJ ====== ====== Omnidex SQL Function: $LJ ======
-{{page>:​sql_bar&​nofooter&​noeditbtn}} 
 ===== Description ===== ===== Description =====
-The $LJ function will left-justify ​a string by eliminating ​the leading white space.+Left-justify the character expression.
  
-The return ​data type is C STRING.+This function ​return ​C STRING ​datatype.
  
-The return length is: 
- 
-the length of the string if the string is a C STRING column 
-the length of the string +1 if the string is a CHAR column or a literal. 
 ===== Syntax ===== ===== Syntax =====
-$LJ( < column_spec | '​string'​ > ) 
- 
-== < column_spec | '​string'​ > == 
- 
-Required. The string that is to be left. This can be a string literal or other scalar_expression resulting in a string. 
- 
-===== Example ===== 
- 
-==== Example 1 ==== 
-select $LJ(company),​ $RJ(company) from customers where company='​systems'​ 
- 
-$LJ(CUSTOMERS.COMPANY) 
----------------------------------------------- 
- 
-$RJ(CUSTOMERS.COMPANY) 
----------------------------------------------- 
- 
-Dynamic Information Systems Corporation 
- 
-Dynamic Information Systems Corporation 
  
-Camco Systems+  $LJ( character_expression )
  
-Camco Systems+== character_expression == 
  
-ASK Computer SystemsInc.+Required. ​ Any expression that returns a character-class datatype. ​ Examples of expressions are columns, concatenations of columnsliteral strings and functions that return a character datatype 
  
-ASK Computer Systems, Inc. 
  
-...+===== Examples ===== 
 +==== Example: Column ==== 
 +<​code>​ 
 +> select $lj(name) nme from individuals;​
  
 +NME
 +--------------------------------------------------
 +MS. MARY LEWIS
 +MRS. ALICE R TOLLIVER
 +MR. SIDNEY K TOLLIVER
 +MRS. JENNIFER J HOPKINS
 +MR. CHARLIE HOPKINS
 +MS. KIMBERLY BLUE
 +KATHLEEN TUCKER
 +</​code>​
  
 + 
 {{page>:​bottom_add&​nofooter&​noeditbtn}} {{page>:​bottom_add&​nofooter&​noeditbtn}}
 
Back to top
dev/sql/functions/lj.txt · Last modified: 2016/06/28 22:38 (external edit)