concat_ws空值
时间: 2023-08-21 22:05:39 浏览: 175
在使用concat_ws函数时,如果有空值,它会直接忽略空值并返回非空值的结果。具体来说,concat_ws函数会将指定的分隔符插入到非空值之间,而对于空值则会被跳过。所以当使用concat_ws函数时,如果有空值,可以确保最终的拼接结果不会包含空值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [MySQL中CONCAT()函数出现值为空的问题及解决办法](https://blog.csdn.net/riemann_/article/details/99664383)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [concat_ws()null值踩坑记录](https://blog.csdn.net/qq_43208426/article/details/109526536)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文