I have 150+ SQL queries in separate text files that I need to parse (only the actual SQL code, not the data results) to identify all column names and table names used. Preferably the number of times a column and table appears. Writing a new SQL parser is harder than it sounds with nested SELECT statements, etc.
There should be a program or code that does this (or something close to this), but I did not find it.
source share