欢迎光临
我们一直在努力

MySQL Variables default_week_format 数据库 参数变量解释及正确配置使用

本站中文解释

default_week_format 是MySQL的一个参数变量,用来设置默认的 WEEK 周数据类型的周的格式(WEEK(n):n=0~53)。

设置该参数时,首先需要了解两个值 0 和 1 的定义。其中, 0 表示由周一开始,1 表示从周日开始。

可以使用 SET 语句进行设置,如 SET default_week_format = 0;表示设置周数据类型开始为星期一。

官方英文解释

default_week_format

Command-Line Format --default-week-format=#
System Variable default_week_format
Scope Global, Session
Dynamic Yes
Type Integer
Default Value 0
Minimum Value 0
Maximum Value 7

The default mode value to use for the
WEEK() function. See
Section 12.7, “Date and Time Functions”.

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。