目录

工欲善其事

实践出真知

活跃标签: linux java mysql 待分类 js springboot win10 电路 vue macOS nginx windows esp32 git docker idea maven esp8266 python Arduino

存档:

X

[ 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