Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dev:sql:functions:proper [2010/07/04 03:53]
tdo
dev:sql:functions:proper [2010/07/09 03:36]
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>​ 
-====== Omnidex SQL Function: CASE ====== 
 {{page>:​sql_bar&​nofooter&​noeditbtn}} {{page>:​sql_bar&​nofooter&​noeditbtn}}
 +====== Omnidex SQL Function: $PROPER ======
 ===== Description ===== ===== Description =====
-The $PROPER function shifts ​the first letter ​of each word in a string to upper case and all other letters in the string to lower case. Words are delimited by white space (tabs, newlines, blanks) or punctuation (: ; , . ! ?).+Converts a string to proper case, meaning that the first character ​of each word in made upper case and the remaining characters are lower case. 
 + 
 +This function returns the same datatype as the passed parameter.
  
-See also: LOWER, UPPER 
 ===== Syntax ===== ===== Syntax =====
-  $PROPER( <​column_spec } '​string'​ > ) 
  
-== <​column_spec | '​string'​ > == +  $PROPER( character_expression )
-  +
-Required. A string or scalar_expression that evaluates to a string.+
  
-===== Example ===== +== character_expression ​== 
-==== Example 1 ==== +
-  select $proper(company),​ upper(company),​ lower(company) from customers where company='​systems'​+
  
-$PROPERDynamic Information Systems Corporation+Required. ​ Any expression that returns a character-class datatype. ​ Examples of expressions are columns, concatenations of columns, literal strings and functions that return a character datatype. ​  
 + 
 + 
 +===== Examples ===== 
 +==== ExampleColumn ==== 
 +<​code>​ 
 +> select $proper(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/proper.txt · Last modified: 2016/06/28 22:38 (external edit)