FAQ

   Before the SQL is reformatted, the SQL formatter first checks the syntax of the input SQL, then creates a parse tree for each SQL: Finally, it formats your SQL based on the parse tree. If there are syntax errors in the SQL, the internal parser will not generate the parse tree, so SQL will not be formatted. This SQL formatter is based on the General SQL Parser which supports the entry level of ANSI SQL99. It also supports most common SQL of MSSQL and Oracle including PLSQL. General SQL Parser also supports MySQL and MS ACCESS, so most SQL dialects of these databases can be formatted. However, General SQL Parser is still under development, and some SQL such as 'create trigger' are still not supported. If this formatter encounters SQL that the internal parser can't handle, no formatted sql will be generated. This will be improved when General SQL Parser supports more and enhanced SQL at a later time.



1. Choose the right database before formatting SQL. SQL syntax varies between databases. To get the best formated SQL output for each database, General SQL Parser uses a different internal parsing routine for each corresponding database. Therefore, it's important to choose the right database before formatting.

2.When you input multiple SQLs, make sure each SQL is separated by a semicolon, especially when you choose Oracle database .

3.Fix the syntax errors reported by formatter and re-format.

4.If your SQL is error free and still can't be formatted, please send your sql to us if possible, we will fix this bug and inform you as soon as possible.

 

Homepage: http://www.wangz.net/

E-Mail: info@wangz.net