SQL Formatter Options
Options
Ins / Upd / Del
The INSERT / UPDATE / DELETE options in the SQL Formatter Tool allow you to configure how these key SQL operations are formatted. By setting specific preferences, you can ensure your scripts are more readable and consistent.
INSERT
Columns per Line
- Specifies how many columns to display on each line in the
INSERT
statement. - Example: Setting
1
will display one column per line for better clarity.
- Specifies how many columns to display on each line in the
Before Comma / After Comma
- Before Comma: Adds a line break before commas in the
INSERT
statement. - After Comma: Adds a line break after commas in the
INSERT
statement.
- Before Comma: Adds a line break before commas in the
Indent Columns and Values
- Aligns and indents column names and corresponding values in the
INSERT
statement for better readability.
- Aligns and indents column names and corresponding values in the
Before „(“ / After „(„
- Before „(„: Adds a line break before opening parentheses in the
INSERT
statement. - After „(„: Adds a line break after opening parentheses.
- Before „(„: Adds a line break before opening parentheses in the
Before „)“ / After „)“
- Before „)“: Adds a line break before closing parentheses.
- After „)“: Adds a line break after closing parentheses.
UPDATE
After UPDATE
- Adds a line break immediately after the
UPDATE
keyword.
- Adds a line break immediately after the
Before SET / After SET
- Before SET: Adds a line break before the
SET
keyword. - After SET: Adds a line break after the
SET
keyword.
- Before SET: Adds a line break before the
Before Comma / After Comma
- Before Comma: Adds a line break before commas in
SET
clauses. - After Comma: Adds a line break after commas in
SET
clauses.
- Before Comma: Adds a line break before commas in
DELETE
- After DELETE
- Adds a line break immediately after the
DELETE
keyword for better structure.
- Adds a line break immediately after the