DROP FUNCTION IF EXISTS `WhlFucGetIDsOnID`; CREATE DEFINER = `root`@`127.0.0.1` FUNCTION `WhlFucGetIDsOnID`(`inID` bigint) RETURNS text BEGIN #Routine body goes here... DECLARE sTemp TEXT; DECLARE sTempChd TEXT; SET sTemp = '$'; SET sTempChd =cast(in…