Rename a relation without recreating it.
Section: Schemas, Tables, and Core DDL
Rename table
sql
sql
ALTER TABLE public.users RENAME TO app_users;Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Schemas, Tables, and Core DDL