sql中的concat、concat_ws和group_concat

concat就是把兩個字符串合併爲一個,例如:concat('123','a')就會獲得結果123a。排序 concat_ws就是使用指定的字符來鏈接兩個字符,例如:concat_ws('-','123','a')就會獲得結果123-a。字符串 group_concat就是分組拼接,能夠用distinct去重,能夠用order by排序,能夠用separator做爲鏈接符,ast 例如:group
相關文章
相關標籤/搜索