Difference between revisions of "CONCAT()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Function to concatenate two strings
+
Function to concatenate two or more strings
 
+
  
 
==Syntax==
 
==Syntax==
CONCAT(<expC1>, <expC2>)
+
CONCAT(<expC1>, <expC2> [, <expCN>...)
 
+
  
 
==See Also==
 
==See Also==
[[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRSTR()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
+
[[AT()]], [[ATNEXT()]], [[FORMAT()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRSTR()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
 
+
  
 
==Description==
 
==Description==
The CONCAT() function concatenates the two specified strings, right-trimming both and adding <expC2> to the end of <expC1>.
+
The CONCAT() function concatenates the two or more specified strings, right-trimming <expC1>.
 
+
  
 
==Example==
 
==Example==
Line 22: Line 18:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:String Data]]
 
 
[[Category:String Data Functions]]
 
[[Category:String Data Functions]]

Latest revision as of 10:53, 13 February 2020

Purpose

Function to concatenate two or more strings

Syntax

CONCAT(<expC1>, <expC2> [, <expCN>...)

See Also

AT(), ATNEXT(), FORMAT(), INLIST(), LEFT(), OCCURS(), RAT(), RIGHT(), SET STRESCAPE, STR(), STREXTRACT(), STRSTR(), STRTRAN(), STUFF(), SUBSTR()

Description

The CONCAT() function concatenates the two or more specified strings, right-trimming <expC1>.

Example

open database southwind
use customers
? concat(concat(city,', '),country)