原创 MYSQL中concat返回值出現null

遇到concat的內容中包含null的數據時,一定要先對null數據進行判斷,不然concat返回值爲null 可以利用ifnull提前對數據進行判斷,防止出現結果返回null 舉例: concat(id, name) # id或者n