select convert(varchar(50),datepart(month,xfjl_xfsj)) + '月' + convert(varchar(50),datepart(day,xfjl_xfsj)) + '日' from xfjl
SQL语句,把datetime转换为MM月DD日
最新推荐文章于 2022-01-12 10:23:32 发布
select convert(varchar(50),datepart(month,xfjl_xfsj)) + '月' + convert(varchar(50),datepart(day,xfjl_xfsj)) + '日' from xfjl