How to use procedure overriding in MySql? Eg.
CREATE DEFINER=`root`@`localhost` PROCEDURE `new_procedure`(IN FieldName varchar(30))
BEGIN
SET @query = 'StackOverflow';
SELECT @query;
END
When i should call new_procedure("Test") this should be executed. Along with this if i call new_procedure() this should be executed and should give the output as "StackOverflow" in both the calling.