In the broader term, I need to parse SQL procedures and find what tables and columns the proc
depends on. To do it, I am trying to search regex
.
Example:
from table db..tb
where tb.column2 = "N" AND column 1 in ("ab","cd")
It should return
tb.column2
column1
How to do it using grep
or awk
or python script etc etc?