CodePudding user response:
Perform such statements, can generate a table for all increase category id of the SQL statementThen you put on the generated SQL execution in a
select concat (' the alter table, table_schema, '. ', table_name, 'add category id int. ') from information_schema. Tables where table_schema='test'