skip to Main Content

MySQL Stored Procedure Issue with Procedure Variables

I have this stored procedure DELIMITER $$ USE `testdb`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `TestProcedure`( IN year_number YEAR, IN month_name VARCHAR(12), IN input_region VARCHAR(20) ) BEGIN DECLARE total_regions_count INT DEFAULT 0; ## Get Distinct Regions. SELECT total_regions_count = COUNT(DISTINCT region) FROM aws_cost…

VIEW QUESTION
Back To Top
Search