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
|
951 Discussions
|
Please Login in order to post a comment
WITH RECURSIVE seq(n) AS ( SELECT 1 UNION ALL SELECT n+1 from seq WHERE n<20 ) SELECT REPEAT ('*',n) AS PATTERN FROM seq;
why it is a wrong answer?
Oracle version:
SELECT RPAD('* ', LEVEL * 2, '* ') FROM DUAL CONNECT BY LEVEL <=20 ;
my sql server
MS SQL Server