Difference between revisions of "+ (string)"

From SQLZOO
Jump to: navigation, search
 

Latest revision as of 18:21, 21 October 2012

Compatibility
s1 + s2
EngineOKAlternative
ingresYes
mysqlNo CONCAT(s1,s2)
oracleNos1 || s2
postgresNos1 || s2
sqlserverYes

+ (strings)

+ allows you to stick two or more strings together.

This operation is concatenation.

   s1 + s2     

In this example you put the region and the name together for each country.

SELECT CONCAT(region,name)
  FROM bbc
SELECT region || name
  FROM bbc
SELECT region + name
  FROM bbc

See also

Language: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense