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
|
929 Discussions
|
Please Login in order to post a comment
SET SERVEROUTPUT ON;
DECLARE v VARCHAR2(250); num NUMBER := 20; BEGIN FOR i IN 1..num LOOP v := v || '* '; DBMS_OUTPUT.PUT_LINE(v); END LOOP; END; /
SELECT REPEAT('* ', @row := @row + 1) FROM information_schema.tables, (SELECT @row := 0) AS init LIMIT 20;
with recursive numbers as ( select 1 as n union all select n + 1 as n from numbers where n < 20 ) select repeat('* ', n) from numbers