Search

How to rename a table in Hive?



Using ALTER command with RENAME, we can rename a table in Hive.
Shell

ALTER TABLE hive_table_name RENAME TO new_name;