RevealTheme logo

SQL 포매터

SQL 쿼리를 포맷하고 보기 좋게 정리합니다. 키워드마다 줄을 바꾸고, 열 목록을 들여쓰기합니다.

이 도구 사용 방법

  1. 1

    Paste or type your SQL query into the input box.

  2. 2

    The formatted version appears instantly in the read-only panel below — there is no separate Format button.

  3. 3

    Select the output text and copy it manually into your editor or query tool.

SQL 포매터란 무엇인가요?

압축되거나 한 줄로 된 SQL을 읽는 것은 고통스럽습니다. 이 포매터는 주요 키워드(SELECT, FROM, WHERE, JOIN 등)에서 줄을 나누고 열 목록을 들여쓰기하여 읽기 쉽게 만듭니다. 출력은 입력과 기능적으로 동일합니다. 포맷팅은 의미를 바꾸지 않습니다.

일반적인 사용 사례

  • Untangling a one-line SQL query copied out of an application log or ORM debug output so you can read it.

  • Quickly making a SELECT with a long column list scannable before reviewing it in a pull request.

  • Normalizing keyword casing to uppercase across an ad-hoc query you wrote in lowercase.

  • Pasting a minified query from a config file or migration into a readable shape for documentation.

  • Teaching or explaining a query's clause structure by breaking SELECT, FROM, WHERE, and JOIN onto their own lines.

  • Doing a fast cleanup before a query is too short to justify opening a full IDE formatter.

자주 묻는 질문

이것이 제 쿼리를 다시 작성하나요?
아닙니다. 포맷팅은 순전히 외형적인 것입니다. 정확성 검사를 원한다면 출력을 린터에 통과시키세요.

관련 도구