mysql字符串拼接

    xiaoxiao2021-04-12  34

    1,CONCAT(string1,string2,…)

    如果有null,则全是null...

    CONCAT(IFNULL(string1,''),IFNULL(string2,''),...)即可处理

     

    2,CONCAT_WS(separator,str1,str2,...)

    没有上述null 的问题,separator就是分隔符

    转载请注明原文地址: https://ju.6miu.com/read-667910.html

    最新回复(0)