You are viewing a single comment's thread. Return to all comments →
DELIMITER //
CREATE PROCEDURE PrintStars() BEGIN DECLARE count INT DEFAULT 20;
WHILE count > 0 DO SELECT REPEAT(' * ', count); SET count = count - 1; END WHILE;
END //
DELIMITER ;
-- To execute the procedure: CALL PrintStars();
Seems like cookies are disabled on this browser, please enable them to open this website
Draw The Triangle 1
You are viewing a single comment's thread. Return to all comments →
DELIMITER //
CREATE PROCEDURE PrintStars() BEGIN DECLARE count INT DEFAULT 20;
END //
DELIMITER ;
-- To execute the procedure: CALL PrintStars();