Found a useful tool of SQL beautification, cured me of my ocd, I recommend you a SQL Pretty Printer, effect directly above,
No formatting SQL is as follows:
Through SQL Pretty Printer formatted as follows:
Simple, for example, writing the stored procedure can change more, and can support a detailed configuration, the following figure,
The official download address: http://www.dpriver.com/dlaction.php
Online version: http://www.dpriver.com/pp/sqlformat.htm
Certificate for free: http://www.dpriver.com/products/sqlpp/getforfree.php