Manuel Amago: SQLPrettyPrinter

Making life taste better…


Page actions: RecentChanges | PrintableView | PageHistory | EditPage



A useful SQL Pretty Printer for those badly formatted SQL strings.

It currently handles complex nested subqueries, case statements and more.

I have also made a web-based version (Attach:prettySql.cgi). To see it in action have a look at:


Todo

  • Make the parser more object-oriented.
  • Give the user the option to uppercase keywords.
  • Make select list break on 72 chars, rather than every column.

Page actions: RecentChanges | PrintableView | PageHistory | EditPage