def _execute_foreach(self, sql, table_names=None):
        cursor = self.cursor()
        if not table_names:
            table_names = self.introspection.get_table_list(cursor)
        for table_name in table_names:
            cursor.execute(sql % self.ops.quote_name(table_name))
dataset/ETHPy150Open lionheart/django-pyodbc/django_pyodbc/base.py/DatabaseWrapper._execute_foreach/original