Skip to content

Instantly share code, notes, and snippets.

@FernandoCutire
Last active July 15, 2024 18:21
Show Gist options
  • Save FernandoCutire/59bd56f178a402628cf976a5e2564bc3 to your computer and use it in GitHub Desktop.
Save FernandoCutire/59bd56f178a402628cf976a5e2564bc3 to your computer and use it in GitHub Desktop.
rename redshift table using sql command
-- Assuming your existing table is named 'old_table'
-- and you want to rename it to 'new_table'
ALTER TABLE old_table RENAME TO new_table;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment