Operator Rules
Introduction
Section titled “Introduction”Operator layout rules control the spaces that are written around the T-SQL arithmetic operators.
Operators
Section titled “Operators”
Spaces around arithmetic operators
| Setting | Description |
|---|---|
| Space before | Place single space before the operator. |
| Space after | Place single space after the operator. |
Break arithmetic expression
Defines when an arithmetic expression is broken on multiple lines and where the break is - before or after the operator.
| Setting | Description |
|---|---|
| Newline before | Place newline before arithmetic operators. |
| Newline after | Place newline before arithmetic operators. |
| Minimum operators | Minimum number of arithmetic operators in order expression to be broken in multiple lines. |
Spaces around comparison operator
| Setting | Description |
|---|---|
| Space before | Place single space before the operator. |
| Space after | Place single space after the operator. |
Spaces around unary operators
| Setting | Description |
|---|---|
| Space before | Place single space before the operator. |
| Space after | Place single space after the operator. |
Spaces around assignment operator
| Setting | Description |
|---|---|
| Space before | Place single space before the operator. |
| Space after | Place single space after the operator. |