http://www.wangz.net/cgi-bin/pp/gsql.../sqlformat.htm

This free online SQL Formatter is a tool that helps you beautify sql code,make it readable.
it is designed to deal with SQL statement used by different
databases such as MSSQL,Oracle,MySQL and so on.