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:concatenation [2010/07/08 22:44]
els
dev:sql:functions:concatenation [2010/07/09 03:33]
els
Line 1: Line 1:
 {{page>:​top_add&​nofooter&​noeditbtn}} {{page>:​top_add&​nofooter&​noeditbtn}}
 {{page>:​sql_bar&​nofooter&​noeditbtn}} {{page>:​sql_bar&​nofooter&​noeditbtn}}
- 
-[[dev:​sql:​functions | <<​Summary>>​]] 
  
 ====== Omnidex SQL Function: || (Concatenation) ====== ====== Omnidex SQL Function: || (Concatenation) ======
 ===== Description ===== ===== Description =====
-The concatenation operator - || (two vertical bars) - returns a single concatenated character string made up of two or more character expressions. All blanks are preserved during concatenation. Use the TRIM function to eliminate blanks if desired. A concatenation operator on two character strings (CHARACTER_DATATYPE_COLUMN1 || CHARACTER_DATATYPE_COLUMN2) will return a CHARACTER string; everything else will return a C STRING.+The concatenation operator - || (two vertical bars) - returns a single concatenated character string made up of two or more character expressions. All blanks are preserved during concatenation. Use the TRIM function to eliminate blanks if desired. ​ 
 + 
 +A concatenation operator on two character strings (CHARACTER_DATATYPE_COLUMN1 || CHARACTER_DATATYPE_COLUMN2) will return a CHARACTER string; everything else will return a C STRING.
  
 ===== Syntax ===== ===== Syntax =====
 +
   character_expression || character_expression [ || character_expression ...]    character_expression || character_expression [ || character_expression ...] 
  
 ===== Examples ===== ===== Examples =====
-==== Example 1: Column + text + Column ​====+==== Example 1: Concatenating both columns and text ====
 <​code>​ <​code>​
 > select '​Individual:​ ' || individual || ' Name: ' || name first_line from individuals;​ > select '​Individual:​ ' || individual || ' Name: ' || name first_line from individuals;​
 
Back to top
dev/sql/functions/concatenation.txt · Last modified: 2016/06/28 22:38 (external edit)