This is an automated email from the ASF dual-hosted git repository.
luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new ad251ae04ed2 update files[typo](doc) current_date has supported in
column definition (#517)
ad251ae04ed2 is described below
commit ad251ae04ed289a0a477ef7b5efab637ea6f15d6
Author: yagagagaga <[email protected]>
AuthorDate: Mon Apr 8 12:16:21 2024 +0800
update files[typo](doc) current_date has supported in column definition
(#517)
---
.../sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md | 2 ++
.../sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md | 2 ++
2 files changed, 4 insertions(+)
diff --git
a/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
b/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
index fcdd7a7878a1..84b704857037 100644
---
a/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
+++
b/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
@@ -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>
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
index 94597bca4236..9d88b8211461 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.md
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]