sql语句 截取某个字段的 年、月

来源:互联网 发布:捷克铁路网络 编辑:程序博客网 时间:2024/05/17 20:30

 

 年:datepart(year,getdate())

月:datepart(month,getdate())

原创粉丝点击