Differences

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

Link to this comparison view

dev:sql:functions:concatenation [2010/07/06 18:28]
tdo
dev:sql:functions:concatenation [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: CASE ====== 
-{{page>:​sql_bar&​nofooter&​noeditbtn}} 
-===== Description ===== 
-The concatenation operator - || (two vertical bars) returns a single concatenated character string made up of two or more character strings. A concatenation operator on two character strings (CHAR_col2 || CHAR_col2) will return a CHAR string; everything else will return a C STRING. 
  
-All blanks are preserved during concatenation. Use the TRIM function to eliminate blanks if desired. 
- 
-===== Syntax ===== 
-  [ < column_spec | "​string"​ > || < column_spec | "​string " >  
-      [ || <​column_spec | "​string "[...] ] 
- 
-===== Examples ===== 
-==== Example 1: Column + text + Column ==== 
-<code SQL> 
-select company, 
-CUSTOMERS.LASTNAME || ', ' || CUSTOMERS.FIRSTNAME ​ 
-from customers ​ 
-where company = '​systems'​ 
-</​code>​ 
-==== Example 2 ==== 
-<code SQL> 
-select 
-PRODUCTS.PRODUCT_NO || ' is the product number for ' || PRODUCTS.DESCRIPTION 
-from products 
-</​code>​ 
- 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
dev/sql/functions/concatenation.txt ยท Last modified: 2016/06/28 22:38 (external edit)