• + 0 comments

    /MySQL/

    DELIMITER // CREATE PROCEDURE PrintPattern(IN R INT) BEGIN declare val INT default 1; while val <= R DO select repeat('* ', val); set val = val + 1; END WHILE; END // DELIMITER ;

    call PrintPattern(20);