How to Rename a Table in Snowflake

Renaming a table in Snowflake is performed by using ALTER TABLE .. RENAME TO statement:

--the syntax
alter table old_table_name rename to new_table_name;

--rename users_marketing to users table
alter table sessions_db1 rename to sessions_db_1;
database icon
Real-time SQL collaboration is here
Get started with PopSQL and Snowflake in minutes