Replies: 2 comments 1 reply
-
There are several ways to parse and modify the sql. But first, you will need a SQL grammar. Go to https://github.com/antlr/grammars-v4/tree/master/sql and pick one of the grammars. Then, choose one or the other:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
it's easy to modify the table name in antlr ParserTree, while you are using the ParserBaseListener or SqlParser which generated by antlr.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are some needs to modify sql at work. example:
replace the table name in sql.
Beta Was this translation helpful? Give feedback.
All reactions