기본 사용 예 | create proc SPAddBadReport @nickname varchar(12), @reporterid varchar(12), @reason varchar(60), @chating varchar(2500)
as
declare @bad_userid varchar(12)
@nickname, @bad_userid output
if @bad_userid is not null begin insert dbo.bad_report values( @bad_userid, @nickname, @reporterid, @reason, @chating, getdate() ) end | DELIMITER $$;
DROP PROCEDURE IF EXISTS `test`.`test1`$$
CREATE DEFINER=`root`@`%` PROCEDURE `test1`( $a varchar(12), $b int )
BEGIN
declare $bid varchar(12);
set $bid = "wrew";
select $bid, $a, $b;
END$$
DELIMITER ;$$ |