Skip to content

SQL indentation general

Tako Lee edited this page Feb 20, 2014 · 13 revisions
  • General indentation size

    General indentation size is used to indent SQL code if there is no specific indent option provided for this SQL segment. Select list in following SQL was indented by 2 spaces.

    SELECT 
      lastname, 
      firstname, 
      jobtitle, 
      department  
    FROM   humanresources.vemployeedepartment;  
  • Use tab to indent

    Use tab character instead of space to indent SQL segment.

Clone this wiki locally