Parsing SQL Statements using java

后端 未结 5 2126
礼貌的吻别
礼貌的吻别 2021-01-06 18:44

I need to parse sql statements and get column names and table names. I tried with sample code. I got table names but I am stucked to get column names for each table.

5条回答
  •  温柔的废话
    2021-01-06 18:59

    Checkout Foundation Parser http://foundationdb.github.io/sql-parser/

    Also note JSQLParser is no longer on SourceForge but maintain at https://github.com/JSQLParser/JSqlParser/wiki

提交回复
热议问题