Available in versions: Dev (3.19) | Latest (3.18) | 3.17 | 3.16 | 3.15 | 3.14

ALTER DATABASE

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

The only property of a database that can be changed, currently, is its name. In order to alter an database's name, use:

// Renaming the database
create.alterDatabase("old_database").renameTo("new_database").execute();

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo