Is there a way to add SQL queries in a For Loop in python where the table names and database names are variable? Something like this:
database = []
tables= []
column = []
for x in database:
for y in tables:
for z in column:
SQL = "select * from x.y where z is NOT NULL;"
cursor.execute(sql)`enter code here`