Turn a DDL script into a database diagram
Paste CREATE TABLE statements and get a scannable ER diagram.
Step 1
Paste the CREATE TABLE script
Copy the relevant DDL into SQL DDL to Diagram. Start with the tables you care about most if the full schema is large or still changing.
Open SQL DDL to Diagram →Step 2
Review the generated relationships
Check primary keys, foreign keys, and table names in the rendered ER diagram. This is the point where naming inconsistencies and unexpected link directions usually stand out.
Review the ER diagram →Step 3
Adjust the DDL if the diagram looks wrong
If a relationship is missing or a table is malformed, go back to the DDL and fix the source instead of editing a screenshot. Iterating on the SQL keeps the diagram reproducible.
Open SQL Playground →Step 4
Export or share the result
Once the structure looks right, use the tool's export or sharing options so reviewers see the same diagram you validated. This works well for design reviews, migration planning, and onboarding notes.
Export from SQL DDL to Diagram →