SELECT
str_to_date(
concat(
YEAR (now()),
date_format(now(), '%m'),
'01'
),
'%Y%m%d'
) tb_time
mysql查询当前所在月的01号
最新推荐文章于 2023-02-21 19:56:08 发布
SELECT
str_to_date(
concat(
YEAR (now()),
date_format(now(), '%m'),
'01'
),
'%Y%m%d'
) tb_time