简体   繁体   English

在SQL Server 2008中更改datepart的默认一周的第一天

[英]Change Default first day of week for datepart in SQL Server 2008

I need to change the default first day of a week in a query in order to make Saturday the first day of the week. 我需要在查询中更改默认的一周的第一天,以使星期六成为一周的第一天。

Does anybody know how? 有人知道吗?

使用DATEFIRST

SET DATEFIRST 6; -- 6 is Saturday

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM