I need to extract the table names and view names from some sql queries. I am using python and came across sqlparse which proved to be of no use. Let me know the solution if anyone knows how to do this.
The queries can have multiple sub-queries or unions with other queries.
The queries can have multiple sub-queries or unions with other queries.