I have a set of database schemas, with each one having the same set of tables.
I want to alter a table by adding a column in each one of the schemas with a single command, instead of doing it for every schema separateley.
Is that possible?
I have a set of database schemas, with each one having the same set of tables.
I want to alter a table by adding a column in each one of the schemas with a single command, instead of doing it for every schema separateley.
Is that possible?
This isn't quite identical to Querying multiple databases at once but it's similar. As in the linked question, you could write a procedure:
information_schema.tables