Skip to content

Commit

Permalink
update files[typo](doc) current_date has supported in column definiti…
Browse files Browse the repository at this point in the history
…on (apache#517)
  • Loading branch information
yagagagaga authored Apr 8, 2024
1 parent 738553c commit ad251ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ Column definition list:
```SQL
// This keyword is used only for DATETIME type. If the value is missing, the system assigns the current timestamp.
dt DATETIME DEFAULT CURRENT_TIMESTAMP
// This keyword is used only for DATE type. If the value is missing, the system assigns the current date.
dt DATE DEFAULT CURRENT_DATE
```
* <version since="2.1" type="inline">`on update current_timestamp`</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ distribution_desc
```SQL
// 只用于DATETIME类型,导入数据缺失该值时系统将赋予当前时间
dt DATETIME DEFAULT CURRENT_TIMESTAMP
// 只用于DATE类型,导入数据缺失该值时系统将赋予当前日期
dt DATE DEFAULT CURRENT_DATE
```
* <version since="2.1" type="inline">`on update current_timestamp`</version>

Expand Down

0 comments on commit ad251ae

Please sign in to comment.