æ¬æ¥å¨MySQLçStore Procedure éæ·»å 注éå¾ç®åãå¯æå¦æç¨å½ä»¤è¡å®¢æ·ç«¯æ¥å¯¼å
¥å¤ä»½çæ°æ®ï¼æ³¨éå°±ä¼è¢«å¹²æã
å¨åå¨è¿ç¨BODYéé¢æ·»å 注é
解å³åæ³ï¼
/*!99999
* Write your comments here.
*/
ææ¥ä¸¾ä¸ä¸ªä¾åï¼
DELIMITER $$
DROP PROCEDURE IF EXISTS `t_girl`.`sp_say_hello`$$
CREATE DEFINER=`root`@`%` PROCEDURE `sp_say_hello`()
COMMENT 'This procedure generates string "Hello,world!"'
BEGIN
/*!99999
* Main statements.
*/
select 'Hello,world!' as result;
END$$
DELIMITER ;
è¿æ ·å¨å½ä»¤è¡ç¨SOURCE 导å
¥çè¯å°±ä¼ä¿çBODY å
ç注éã
温馨提示:答案为网友推荐,仅供参考