Skip to content

Commit

Permalink
sql: update the YEAR type and syntax element
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed Sep 10, 2018
1 parent a4c4f66 commit 662ff50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/datatype.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ BIGINT[(M)] [UNSIGNED] [ZEROFILL]

| 语法元素 | 说明 |
| ---- | --------|
| M | 类型长度,可选的 |
| M | 类型显示宽度,可选 |
| UNSIGNED | 无符号数,如果不加这个标识,则为有符号数 |
| ZEROFILL | 补零标识,如果有这个标识,TiDB 会自动给类型增加 UNSIGNED 标识,但是没有做补零的操作 |

Expand Down Expand Up @@ -174,8 +174,8 @@ TIME[(fsp)]
> 时间。范围是`-838:59:59.000000``838:59:59.000000`。以`HH:MM:SS[.fraction]`格式显示 TIME 值。
fsp 参数是表示秒精度,取值范围为:0-6。默认值取 0

YEAR[(2|4)]
> 两位或四位格式的年。默认是四位格式。在四位格式中,允许的值是 190121550000。在两位格式中,允许的值是 7069,表示从 1970 年到 2069
YEAR[(4)]
> 四位格式的年。允许的值是 190121550000
```

## 字符串类型
Expand Down

0 comments on commit 662ff50

Please sign in to comment.