本站中文解释
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”.