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())
しかし、これは名前を「金曜日」として返します
ありがとう..
set datefirst 7 select datepart(dw, getdate())-1
DATEFIRST を設定
DATEPART