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)

Advertisements