摘要:
Mysql 创建functionDROP FUNCTION IF EXISTS `delModule`;CREATE DEFINER = `root`@`%` FUNCTION `delModule`(`id` int) RETURNS varchar(64)BEGIN #Routine body goes here... DECLARE c INT; SET c = 0; select count(*) into c from modules where module_parent=id; IF c > 0 THEN RETURN CONCAT('... 阅读全文