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
example: alter table sale_detail change column old_col_name rename to new_col_name;
val parser = OdpsStatementParser(sql) val stmt = parser.parseStatement()
异常信息:
com.alibaba.druid.sql.parser.ParserException: syntax error, error in :'name rename to new_col_name;',expect COMMENT, actual IDENTIFIER rename at com.alibaba.druid.sql.parser.SQLParser.printError(SQLParser.java:239) at com.alibaba.druid.sql.parser.SQLParser.accept(SQLParser.java:247) at com.alibaba.druid.sql.parser.SQLStatementParser.parseAlter(SQLStatementParser.java:888) at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:152) at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatement(SQLStatementParser.java:2065) at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatement(SQLStatementParser.java:2055)
The text was updated successfully, but these errors were encountered:
同时修改列名及列注释 解析也失败: ALTER TABLE table_name CHANGE COLUMN old_col_name new_col_name column_type COMMENT column_comment;
Sorry, something went wrong.
已经支持,请使用新版本 https://github.com/alibaba/druid/releases/tag/1.0.30
No branches or pull requests
example: alter table sale_detail change column old_col_name rename to new_col_name;
val parser = OdpsStatementParser(sql)
val stmt = parser.parseStatement()
异常信息:
The text was updated successfully, but these errors were encountered: