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:
- Make the parser more object-oriented.
- Give the user the option to uppercase keywords.
selectlist break on 72 chars, rather than every column.