Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Getting Column list from Select queries using JSQLParser. #1432

satyen1 started this conversation in General
Discussion options

Hi All,

I have just started exploring this Parser.
Is there a method already available to get the list of columns referenced in the SELECT queries.

Kindly let me know how I can implement above requirement.

Thanks !

You must be logged in to vote

Replies: 1 comment

Comment options

He @satyen1,

this one should give you a good start: https://stackoverflow.com/questions/40908062/parsing-table-and-column-names-from-sql-hql-java.

Using the TableNamesFinder is always a way to go. Sure you have some overhead for collecting table names as well, but it is a complete implementation of visitors.

Hope that helps.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /