Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Post Closed as "Not suitable for this site" by Charles, Salvador Dali, CRABOLO, Jan Doggen, CommunityBot

I want to parse a sql query and extract only column names from it. I can't jusjust extract the part between 'select' and 'from' because the query can also have an alias.This This is the requirement for now, but later on any type of query can come in, so I need a dynamic method/ library which will return the column names.

I want to parse a sql query and extract only column names from it. I can't jus extract the part between 'select' and 'from' because the query can also have alias.This is the requirement for now, but later on any type of query can come in, so I need a dynamic method/ library which will return column names

I want to parse a sql query and extract only column names from it. I can't just extract the part between 'select' and 'from' because the query can also have an alias. This is the requirement for now, but later on any type of query can come in, so I need a dynamic method/ library which will return the column names.

Source Link

Extract column names in java from a dynamic sql query

I want to parse a sql query and extract only column names from it. I can't jus extract the part between 'select' and 'from' because the query can also have alias.This is the requirement for now, but later on any type of query can come in, so I need a dynamic method/ library which will return column names