We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram
SQL was automatically intercepted
select * from user WHERE userId = ? and ( userHead like '%' || ? || '%' or itemName like '%' || ? || '%' or itemCode like '%' || ? || '%' )
When there are more than 2 consecutive /n, the SQL will be automatically truncated. I use System. out. println (statement); printed the results
System. out. println (statement);
My Demo is
String sql = "select * from user\n" + " WHERE userId = ?\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + " and (\n" + " userHead like '%' || ? || '%'\n" + " or itemName like '%' || ? || '%'\n" + " or itemCode like '%' || ? || '%'\n" + " )"; CCJSqlParser parser = CCJSqlParserUtil.newParser(sql); parser.withSquareBracketQuotation(true); try { Statement statement = parser.Statement(); System.out.println(statement); }catch (ParseException e) { throw new RuntimeException(e); }
The text was updated successfully, but these errors were encountered:
Duplicate #1988
2 empty lines \n\n terminate a statement.
\n\n
Sorry, something went wrong.
No branches or pull requests
Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram
Failing SQL Feature:
SQL was automatically intercepted
SQL Example:
Software Information:
Tips:
When there are more than 2 consecutive /n, the SQL will be automatically truncated. I use
System. out. println (statement);
printed the resultsMy Demo is
The text was updated successfully, but these errors were encountered: