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.