bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL CONCAT() Function

Example

SELECT CONCAT("SQL ", "Tutorial ", "is ", "fun!") AS ConcatenatedString;

Definition and Usage

The CONCAT() function adds two or more expressions together.

Note

Also look at the CONCAT_WS() function.

Syntax

CONCAT(
expression1
,
expression2
,
expression3
,...)

Parameter Values

ParameterDescription
expression1, expression2, expression3, etc.Required. The expressions to add together. Note: If any of the expressions is a NULL value, it returns NULL

Technical Details

Works in:From MySQL 4.0

Previous

MySQL CHARACTER_LENGTH() Function

Next

MySQL CONCAT_WS() Function