We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Draw The Triangle 2
Draw The Triangle 2
Sort by
recency
|
967 Discussions
|
Please Login in order to post a comment
with p(n) as ( select 1 as n union all select n+1 from p where n<20 ) select replicate(' *',n) from p;
WITH RECURSIVE traingle(n) AS ( SELECT 1 AS n
)
SELECT REPEAT("* ",n) FROM traingle ;
WITH RECURSIVE traingle(n) AS ( SELECT 1 AS n
)
SELECT REPEAT("* ",n) FROM traingle ;
set @row := 0; select repeat( "* ",@row:=@row+1) from information_schema.tables limit 20