How to rename a table in Redshift

Below is the syntax to rename a table in Redshift database:

alter table tablename   
rename to new_tablename;
See also  How to send a message to an SQS queue using Lambda when a file is uploaded to an S3 bucket