public static String stripComments(String multiLineSQL) {
        return SqlParser.parse(multiLineSQL, true, false).toString().trim();
    }
public static String stripComments(String multiLineSQL) {
        return SqlParser.parse(multiLineSQL, true, false).toString().trim();
    }
public static String stripComments ( String multiLineSQL ) { return SqlParser . parse ( multiLineSQL , true , false ) . toString ( ) . trim ( ) ; }
Searches through a String which contains SQL code and strips out
any comments that are between \/**\/ or anything that matches
SP--SP<text>\n (to support the ANSI standard commenting of --
at the end of a line).

@return The String without the comments in
Searches through a String which contains SQL code and strips out any comments that are between \ / ** \ / or anything that matches SP -- SP<text > \ n ( to support the ANSI standard commenting of -- at the end of a line ) .