Answers for "how to print a pattern in mysql"

SQL
0

how to print a pattern in mysql

DECLARE @var int               -- Declare
SELECT @var = 5                -- Initialization
WHILE @var > 0                 -- condition
BEGIN                          -- Begin
PRINT replicate('* ', @var)    -- Print
SET @var = @var - 1            -- decrement
END                            -- END
Posted by: Guest on June-04-2021

Code answers related to "how to print a pattern in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language