[ Mysql ] 有多坑!!! 持续更新...
1、concat
concat 中有一个是空(null)所返回的值就是空
解决办法,用ifnull判断一下:
select concat(
(select parent_initials from busi_testing_type where id = '1627593512277184514'),
ifnull((select point_code from busi_acquisition_point where id = '1'), '')
) encode;
标题:[ Mysql ] 有多坑!!! 持续更新...
作者:llilei
地址:http://solo.llilei.work/articles/2023/03/01/1677634631716.html