You are viewing a single comment's thread. Return to all comments →
MYSQL
WITH RECURSIVE Pattern AS ( SELECT 20 AS num UNION ALL SELECT num - 1 FROM Pattern WHERE num > 1 ) SELECT REPEAT('* ', num) FROM Pattern;
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 →
MYSQL
WITH RECURSIVE Pattern AS ( SELECT 20 AS num UNION ALL SELECT num - 1 FROM Pattern WHERE num > 1 ) SELECT REPEAT('* ', num) FROM Pattern;