select CONCAT(TRIM(username),'(',locaiton,')') from user2
解释:函数
TRIM()函数用于去除字符串左右两边的空格(字符串字之间的空格不能去除)。
结果:spa