doc/user/content/sql/alter-table.md
Use ALTER TABLE to:
{{< tabs >}} {{< tab "Rename" >}}
To rename a table:
{{% include-syntax file="examples/alter_table" example="syntax-rename" %}}
{{< /tab >}} {{< tab "Change owner" >}}
To change the owner of a table:
{{% include-syntax file="examples/alter_table" example="syntax-change-owner" %}}
{{< /tab >}} {{< tab "(Re)Set retain history config" >}}
To set the retention history for a user-populated table:
{{% include-syntax file="examples/alter_table" example="syntax-set-retain-history" %}}
To reset the retention history to the default for a user-populated table:
{{% include-syntax file="examples/alter_table" example="syntax-reset-retain-history" %}}
{{< /tab >}} {{< /tabs >}}
The privileges required to execute this statement are:
{{% include-headless "/headless/sql-command-privileges/alter-table" %}}