Turn SQL CREATE TABLE definitions into Mermaid ER diagram source and a table overview. Paste DDL, review detected keys and relationships, then copy the Mermaid text into a renderer.
Example
CREATE TABLE customers (id INTEGER PRIMARY KEY);
CREATE TABLE orders (
customer_id INTEGER NOT NULL REFERENCES customers (id)
);
orders }o--|| customers : "customer_id"Limits and behavior
- Supports common CREATE TABLE definitions and foreign-key forms in PostgreSQL, MySQL, SQL Server, SQLite, and Oracle styles.
- The output is Mermaid text; this page does not render the diagram.
- Unsupported statements are reported with a line and column.