惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
K
Kaspersky official blog
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cisco Blogs
AWS News Blog
AWS News Blog
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
美团技术团队
T
Threatpost
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes
Blog — PlanetScale
Blog — PlanetScale
C
Cybersecurity and Infrastructure Security Agency CISA
F
Full Disclosure
博客园_首页
N
Netflix TechBlog - Medium
Security Latest
Security Latest
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Announcements
Recent Announcements
博客园 - Franky
P
Palo Alto Networks Blog
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Cisco Talos Blog
Cisco Talos Blog
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 【当耐特】
GbyAI
GbyAI

博客园 - 巍巍边疆

最新版Android开发工具 卸甲归田 Android模拟器调试网络通讯 12月编程语言排行榜:C#前途无量 便捷的安全检测 Windows 7 64位中安装IIS失败?“出现错误。并非所有的功能被成功更改” Microsoft VBScript 运行时错误 错误 '800a000d' 类型不匹配: 'regEx.Replace' 64位系统上的Jet for Access, Excel, Txt 64位IIS(IIS6/IIS7)上运行Jet.Oledb的设置 超经典!90后看不懂的操作系统 如何在浏览器看到ASP的错误详细信息(IIS7.0) PHP and ASP.NET - A Feature List Javascript DataGrid using the MVC 【转载】Resharper上手指南 QQ2010在win7中安装时如何把个人文件保存于安装目录下 大智慧日K线的数据结构 实时股票数据接口大全 获取实时股票数据与股票数据接口API 合格的CIO需要具备怎样的素质
SQL Server 怎么设置星期日为一周的第一天
巍巍边疆 · 2011-01-20 · via 博客园 - 巍巍边疆

SET DATEFIRST设置一周的第一天是星期几,该设置对所有用户均有效,除非再次修改,否则该设置将一直保留。

SET DATEFIRST的具体语法如下:

SET DATEFIRST { number | @number_var }

其中参数number | @number_var是一个整数,表示一周的第一天。允许的值是1~7,1表示一周的第一天是星期一,7表示一周的第一天对应为星期日。number的默认值是7(即一周的第一天为星期日)。可以通过查询系统变量@@DATEFIRST获取当前的SET DATEFIRST设置值。

DATENAME(dw,date)及DATEPART(dw,date)的结果会受到SET DATEFIRST设置值的影响。