---
name: "format-sql"
section: "1"
platform: "linux"
package: "libsql-abstract-perl"
version: "1.72-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/format-sql"
---

# format-sql(1)

utility to format SQL statements

## NAME

format-sql - utility to format SQL statements

## SYNOPSIS

format-sql \[--profile\|-p *none*\|*console*\|*console\_monochrome*\|*html*\]

format-sql --usage

## SUMMARY

This program creates an interactive environment, where the user types in SQL, and the program responds with the SQL neatly formatted, revealing the underlying syntactical structure.

## OPTIONS

The `"-p"` or `"--profile"` can select between four alternative ways of formatting the data, known as profiles. This defaults to *console*.
