diff --git a/rds_mysql/stored_procedure/internal02/get_distribution_to_schema.sql b/rds_mysql/stored_procedure/internal02/get_distribution_to_schema.sql index e4c8a37f..9eb02059 100644 --- a/rds_mysql/stored_procedure/internal02/get_distribution_to_schema.sql +++ b/rds_mysql/stored_procedure/internal02/get_distribution_to_schema.sql @@ -20,7 +20,7 @@ BEGIN -- カーソル DECLARE cursor_crm_data_distribution_settings CURSOR FOR SELECT `from_column_value`, `to_schema` - FROM `crm_data_distribution_settings` + FROM intenal02.`crm_data_distribution_settings` WHERE `table_id` = target_table AND `from_column_id` = target_column;