diff --git a/docs/user-guide/manage-data/overview.md b/docs/user-guide/manage-data/overview.md index c0326c00f..3e02e7cde 100644 --- a/docs/user-guide/manage-data/overview.md +++ b/docs/user-guide/manage-data/overview.md @@ -307,4 +307,9 @@ You can also create a database-level TTL policy. For example, the following SQL CREATE DATABASE test WITH ('ttl'='7d'); ``` +You can set TTL policies at both the table level and the database level simultaneously. +If a table has its own TTL policy, +it will take precedence over the database TTL policy. +Otherwise, the database TTL policy will be applied to the table. + For more information about TTL policies, please refer to the [CREATE](/reference/sql/create.md) statement. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/overview.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/overview.md index 2e8b66542..2f91fc3b4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/overview.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/manage-data/overview.md @@ -306,6 +306,8 @@ CREATE TABLE monitor ( CREATE DATABASE test WITH ('ttl'='7d'); ``` -有关 TTL 策略的更多信息,请参阅 [CREATE](/reference/sql/create.md) 语句。 - +你可以同时为 table 和 database 设置 TTL 策略。 +如果 table 有自己的 TTL 策略,则该策略将优先于 database 的 TTL 策略, +否则 database 的 TTL 策略将被应用于 table。 +有关 TTL 策略的更多信息,请参阅 [CREATE](/reference/sql/create.md) 语句。