一、mysql日期和时间分开字段存储时:
可用拼接函数 concat(update_date,’ ',update_time);
当参数里面的时间格式为 :“2021-12-29 00:00:00.0”
因为: “2021-12-29 00:00:00.0” != “2021-12-29 00:00:00” ,
可以在时间后面加上 ‘.0’
concat(update_date,’ ‘,update_time,’.0’);
一、mysql日期和时间分开字段存储时:
可用拼接函数 concat(update_date,’ ',update_time);
当参数里面的时间格式为 :“2021-12-29 00:00:00.0”
因为: “2021-12-29 00:00:00.0” != “2021-12-29 00:00:00” ,
可以在时间后面加上 ‘.0’
concat(update_date,’ ‘,update_time,’.0’);