Last updated 1 year ago
Was this helpful?
P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5):
* * * * * * * * * * * * * * *
Write a query to print the pattern P(20).
SET @i = 0; SELECT REPEAT('* ', @i := @i+1) FROM information_schema.tables LIMIT 20;