Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能得到这样的周指数
来自 SQL Server。
我用过这个
SELECT DATENAME(W,GETDATE())
但这会将名称返回为“Friday”
谢谢..
set datefirst 7 select datepart(dw, getdate())-1
设置日期优先
日期部分