select CONCAT(TRIM(username),'(',locaiton,')') from user2
解釋:函數
TRIM()函數用於去除字符串左右兩邊的空格(字符串字之間的空格不能去除)。
結果:spa