The RENAME TABLE statement renames one or more ColumnStore tables.
Notes:
RENAME TABLE orders TO customer_order;
The following statement renames both the orders table and customer table:
RENAME TABLE orders TO customer_orders,customer TO customers;
You may also use RENAME TABLE to swap tables. This example swaps the customer and vendor tables (assuming the temp_table does not already exist):
RENAME TABLE customer TO temp_table, vendor TO customer,temp_table to vendor;
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/5573/