General SQL Parser and SQL Pretty Printer Formatter options

Index

Available format options for update set clause:

gFmtOpt.Update_Columnlist_Style Type: TAlignStyle Default: asStacked
gFmtOpt.DefaultCommaOption Type: TLinefeedsCommaOption Default: lfAfterComma

Example format options:

NameValue
gFmtOpt.Update_Columnlist_StyleasStacked
gFmtOpt.DefaultCommaOptionlfAfterComma

Formatted SQL:

UPDATE employees
SET    department_id = 70,
       dname = 'sales',
       location = 'ca'
WHERE  employee_id = 113; 

Example format options:

NameValue
gFmtOpt.Update_Columnlist_StyleasStacked
gFmtOpt.DefaultCommaOption

lfbeforeCommaWithSpace

Formatted SQL:

UPDATE employees
SET    department_id = 70
       , dname = 'sales'
       , location = 'ca'
WHERE  employee_id = 113; 

Example format options:

NameValue
gFmtOpt.Update_Columnlist_StyleasWrapped
gFmtOpt.DefaultCommaOptionlfAfterComma

Formatted SQL:

UPDATE employees
SET    department_id = 70,dname = 'sales',location = 'ca'
WHERE  employee_id = 113;