Translate

Showing posts with label rename database. Show all posts
Showing posts with label rename database. Show all posts

Monday, October 28, 2024

How To Rename Existing Database in POSTGRESQL

using below query you can rename the database

ALTER DATABASE <FromDBName> RENAME TO <ToDBName>

Note: Apart from this connection need to close other open connection to the database to close the connection refer close existing connections