datepart函数返回星期几

来源:互联网 发布:吉利汽车配件淘宝 编辑:程序博客网 时间:2024/05/15 03:29
select datepart(dw,getdate())

这个函数的第一天是星期天
星期天 1
星期一 2
.
.
.
星期五 6
0 0
原创粉丝点击