Step by step mysql tutorials
CONCAT() functions returns the concatenated string. You may have one or more arguments.
For quoted strings, concatenation can be performed by placing the strings next to each other.
[table caption=”” width=”100%” colwidth=”15%||30%|55%” colalign=”left|lef|left”]
Name, Required /Optional, Description
string1, Required, first parameter is must.
string2 , Required, second parameter is must.
stringN… , Optional, N number of strings can be passed as parameter.
[/table]
[table caption=”” width=”100%” colwidth=”20%|80%” colalign=”left|left”]
Returns,
NULL, if any argument is NULL.
nonbinary string, If all arguments are nonbinary strings.
binary string, If the arguments include any binary strings.
[/table]
[table caption=”” width=”100%” colwidth=”25%|75%” colalign=”left|left”]
Version, MySQL 4.0
[/table]
mysql> SELECT CONCAT('Tutorial', 'mines', '.net'); +-------------------------------------+ | CONCAT('Tutorial', 'mines', '.net') | +-------------------------------------+ | Tutorialmines.net | +-------------------------------------+ 1 row in set (0.00 sec) mysql> SELECT CONCAT('Tutorial', NULL , 'mines', '.net'); +--------------------------------------------+ | CONCAT('Tutorial', NULL , 'mines', '.net') | +--------------------------------------------+ | NULL | +--------------------------------------------+ 1 row in set (0.01 sec) mysql> SELECT CONCAT(14.3, 12.45, 78.0); +---------------------------+ | CONCAT(14.3, 12.45, 78.0) | +---------------------------+ | 14.312.4578.0 | +---------------------------+ 1 row in set (0.00 sec) mysql> SELECT 'Tutorial' 'mines' '.net'; +-------------------+ | Tutorial | +-------------------+ | Tutorialmines.net | +-------------------+ 1 row in set (0.00 sec)
Below is the mysql terminal screen for above code :
See all MySQL String functions MySQL 8 String Functions.
In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…
Looking for the perfect toy for your child can feel overwhelming with so many choices in today’s market. Whether you're…
In the heart of every child lies a world bursting with imagination — and the key to unlocking that world…
In the fast-paced world of growing cities and digital lifestyles, children need spaces where their imagination is free to roam.…
In a city as vibrant and diverse as Delhi, there’s a magic that lives beyond the monuments, food stalls, and…
In the vibrant and rapidly developing city of Noida, playtime is getting smarter, more imaginative, and more inclusive than ever…