摘要: 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('... 阅读全文
posted @ 2013-09-03 21:55 yumuxu 阅读(127) 评论(0) 推荐(0) 编辑