Generate and export DDL
Generate the SQL (DDL) to run on a database, and documents such as Excel table documents, from your model.
DDL
- Open File › Export › DDL.
- Choose the target database and version. The preview updates right away. Supported databases: PostgreSQL, MySQL, MariaDB, Oracle, SQL Server, Db2, H2, HSQLDB, SQLite, Informix, MS Access and standard SQL.
- Choose what to generate (drop statements, tables, indexes, foreign keys, sequences, comments and so on), the encoding and the line break. Your choices are saved in the document and used next time.
- Save it to a file. Click Open folder in the notice at the bottom right of the window to go straight to the file.

Syntax that the chosen version cannot run is removed or changed, with a warning. If there are errors that will make the DDL fail when run, the dialog says "This document has n errors that make the DDL fail".
Other exports
Choose the kind in File › Export.
- Excel — Table documents (a Korean template is built in, as are English, Japanese and Chinese ones). ERMaster
.xlstemplates also work, and the output is.xlsx. - Image — PNG, JPG, BMP or SVG.
- HTML and Markdown — Documents you can read offline.
- DBML, Mermaid and Model JSON — For pasting into other tools. You can also copy straight to the clipboard.
- Java and Test data — Class sources and JPA entities; INSERT SQL and DBUnit XML.
