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

MySQLMySQLi Database

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)
raja
Published on 19-Feb-2018 18:40:26
Advertisements