mysql之concat、concat_ws、group_concat函數詳解

  一、concat()函數 1、功能:將多個字符串連接成一個字符串。 2、語法:concat(str1, str2,...) 返回結果爲連接參數產生的字符串,如果有任何一個參數爲null,則返回值爲null。 3、舉例: 例1:select concat (id, name, parentId) as info from t_areainfo; 注: 1、如果有其中一個字段爲null,那麼拼接出
相關文章
相關標籤/搜索