读书人

时间格式转换速度秒多谢

发布时间: 2012-04-07 17:31:52 作者: rapoo

时间格式转换,在线等,速度秒,谢谢
根据需要时间格式要(月/日)这样的格式
比如getdate()
2012年2月24日

只需要其中的月和日,并且转换为 24/2
如果日期是2012年2月4日

转换为4/2

各位大神帮忙,我没找到方法,103只能取到 04/02

[解决办法]

SQL code
select ltrim(day(date))+'/'+ltrim(month(date)) datefrom tb 

读书人网 >SQL Server

热点推荐