What happens if I pass only one argument to the MySQL CONCAT() function?


MySQL allows us to pass only one argument to the CONCAT() function. In this case, MySQL returns the same argument as output. Following example will exhibit it −

Example

mysql> Select Concat('Delhi');
+-----------------+
| Concat('Delhi') |
+-----------------+
| Delhi           |
+-----------------+
1 row in set (0.00 sec)

Updated on: 20-Jun-2020

118 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements