ossinova
Contributor II

Check this notebook out, I assume you can change it a bit to do what you want. 
https://docs.databricks.com/en/_extras/notebooks/source/set-owners-notebook.html
I assume you can loop through the rows in the resulting df (that has the ALTER statements), and then trigger a pySQL query.