Renaming a table
General command format:
global options
: Global parameters.options
: .
View a description of the command to rename a table:
When including multiple rename operations in a single tools rename
call, they’re executed in the specified order, but within a single transaction. This lets you rotate the table under load without data loss: the first operation is renaming the working table to the backup one and the second is renaming the new table to the working one.
Examples
Renaming a single table:
Renaming multiple tables within a single transaction:
ydb tools rename \
--item source=new-project/second_table,destination=new-project/seasons \
--item source=new-project/third_table,destination=new-project/series
Moving tables to a different directory:
Replacing a table
ydb tools rename \