Back to Influxdb

Rename

content/shared/influxctl/table/rename.md

latest1.2 KB
Original Source

The influxctl table rename command renames a table in the specified database in an {{< product-name omit=" Clustered" >}} cluster.

Usage

<!-- pytest.mark.skip -->
bash
influxctl table rename [flags] <DATABASE_NAME> <CURRENT_TABLE_NAME> <NEW_TABLE_NAME>

Arguments

ArgumentDescription
DATABASE_NAMEName of the database the table is in
CURRENT_TABLE_NAMECurrent name of the table
NEW_TABLE_NAMENew name for the table

Flags

FlagDescription
--formatOutput format (table (default) or json)
-h--helpOutput command help

{{% caption %}} Also see influxctl global flags. {{% /caption %}}

Examples

<!-- pytest.mark.skip -->
bash
# Rename the "example-tb" table to "example_tb"
influxctl table rename mydb example-tb example_tb