Skip to content

SQL how to break long expression

Tako Lee edited this page Feb 21, 2014 · 1 revision

Avoid lines longer than 80 characters

When an expression will not fit on a single line of 80 characters, break it according to these general principles:

  • Break after a comma.
  • Break before an operator.
  • Align the new line with the beginning of the expression at the same level on the previous line.
Clone this wiki locally