Skip to content
Advertisement

Why can’t I loop through and drop databases?

There is a scenario where I want to go through and remove all databases that have specific text in the database name. It always drops one database and then does nothing. How can I fix this?

Advertisement

Answer

Posting as answer.

Do fetchall() then iterate over that

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement