Install Stored Procedure on Multiple Databases

前端 未结 3 956
眼角桃花
眼角桃花 2021-01-22 10:38

Is there any way to easily create a stored procedure on multiple MySQL databases at once? All the databases are on the same MySQL install.

3条回答
  •  青春惊慌失措
    2021-01-22 11:07

    I would recommend doing a copy-paste and create the stored procedure in each database schema if they need to be available to that schema only. Otherwise I would follow the recommendation from 'Kelly Vista' and just refer to the stored procedure located in one of the schema's.

提交回复
热议问题