DiagramPreview
안정 렌더러No AILocal previewExportSEO tool

SQL to ER Diagram

Paste SQL DDL and visualize tables, columns, primary keys, and foreign key relationships as an ER diagram.

예제
ER diagram준비됨
Your ER diagram will appear here.

관련 도구로 계속하기

현재 미리보기를 가까운 워크플로로 옮겨 변환, 디버깅 또는 내보내기를 계속하세요.

DBML to ER Diagram

Convert DBML table definitions and refs into a Mermaid ER diagram.

열기
Prisma Schema Diagram

Convert Prisma model blocks into an ER-style schema diagram.

열기
JSON Schema Visualizer

Inspect JSON Schema properties, types, required fields, and composition groups.

열기

사용 방법

  1. 1Paste source text into the editor.
  2. 2Review the generated visualization.
  3. 3Edit the input and export the rendered SVG or PNG when the diagram looks right.

사용 사례

Database documentationSchema reviewData model onboarding

FAQ

이 도구는 브라우저에서 작동하나요?

예. 대부분의 미리보기, 검증, 내보내기는 브라우저에서 실행됩니다. AI 도구는 설정된 API로 prompt만 전송합니다.

게시 전에 무엇을 확인해야 하나요?

다이어그램이나 파일이 실제 흐름을 반영하는지, 라벨이 읽기 쉬운지, 민감한 데이터가 제거되었는지, SVG/PNG export가 review하기 쉬운지 확인하세요.

문서화에 어떻게 도움이 되나요?

기술 텍스트나 파일을 review 가능한 시각적 preview로 바꾸어 README, ADR, runbook, issue, API docs에서 연결할 수 있습니다.

Convert CREATE TABLE SQL into a Mermaid ER diagram.

Paste SQL DDL and visualize tables, columns, primary keys, and foreign key relationships as an ER diagram.

DiagramPreview keeps the workflow editable so you can revise the source and regenerate the visualization quickly.

Demo: convert CREATE TABLE statements into an ER diagram

SQL schema review becomes faster when tables, primary keys, and foreign keys are visible. The preview helps teams discuss relationships before migrations reach production.

  • Include CREATE TABLE statements for all referenced tables.
  • Keep foreign key constraints in the sample when possible.
  • Use the ER output to review relationships, not query performance.
CREATE TABLE users (id INT PRIMARY KEY, email TEXT);
CREATE TABLE orders (id INT PRIMARY KEY, user_id INT REFERENCES users(id), total DECIMAL);

Review checklist: catch schema relationship mistakes

An ER preview can expose missing foreign keys, many-to-many join tables, and columns that imply a relationship but are not constrained.

  • Look for *_id columns without a matching relationship.
  • Check whether join tables need composite uniqueness.
  • Confirm nullable foreign keys represent a real optional relationship.
order_items(order_id, product_id)
UNIQUE(order_id, product_id)

SQL to ER Diagram 검토 체크리스트

문서, PR, 장애 회고, 인수인계 전에 소스 내용을 시각적으로 확인할 때 SQL to ER Diagram을 사용할 수 있습니다. Convert CREATE TABLE SQL into a Mermaid ER diagram.

내보내기 전 라벨 가독성, 관계 정확성, 민감 정보 포함 여부, 입력 수정 후 미리보기 일관성을 확인하세요.

제한과 문제 해결

미리보기가 실패하면 입력을 가장 작은 완전한 예제로 줄이고 문법을 확인한 뒤 섹션을 다시 추가하세요.

미리보기는 검토 화면이지 사실의 원천은 아닙니다. 중요한 결과는 사람이 확인해야 합니다.

테스트할 예제 입력

  • 커머스: CREATE TABLE customers ( id INT PRIMARY KEY, email VARCHAR(255) NOT NULL UNIQUE, name VARCHAR(120) ); CREATE TABLE orders ( id INT PRIMARY KEY, customer_id INT NOT NULL REFERENCES ...
  • 블로그: CREATE TABLE authors ( id INTEGER PRIMARY KEY, display_name TEXT NOT NULL ); CREATE TABLE posts ( id INTEGER PRIMARY KEY, author_id INTEGER REFERENCES authors(id), slug TEXT NOT NU...
  • 청구: CREATE TABLE accounts ( id BIGINT PRIMARY KEY, plan VARCHAR(40) NOT NULL ); CREATE TABLE invoices ( id BIGINT PRIMARY KEY, account_id BIGINT NOT NULL, amount_cents INT NOT NULL, FO...

도구 완성도

안정 렌더러

안정 도구

이 도구는 전용 미리보기, 유용한 내보내기, 브라우저 안에서 반복 가능한 검토 흐름을 제공합니다.

라벨은 안정적인 내보내기, 깊은 디버깅, 빠른 파싱, AI 보조 생성 중 어디에 더 적합한지 알려줍니다.