Skip to content

select column list style

shenhuan2021 edited this page Mar 3, 2024 · 4 revisions

Align AS keyword in select list.

Delphi

Java

  • public TAlignStyle selectColumnlistStyle, type of TAlignStyle

Uniform

Option: fmt001_select_list_style = fit_into_one_line, type: TFmtListStyle.

  • select list in the same line as SELECT keyword

    Option: fmt002_select_list_in_newline = false, type: TFmtBoolean.

    Option: fmt003_select_list_comma_option = after_item_with_1_space, type: TFmtCommaOption.

    SELECT Name, ProductNumber, ListPrice AS Price
    FROM Production.Product 
    ORDER BY Name ASC;
  • First select list item in the same line as SELECT keyword

    Option: fmt001_select_list_style = stacked, type: TFmtListStyle.

    Option: fmt003_select_list_comma_option = after_item, type: TFmtCommaOption.

    SELECT Name, 
           ProductNumber, 
           ListPrice AS Price
    FROM Production.Product 
    ORDER BY Name ASC;
Clone this wiki locally