DEV Community

Nihal Agarwal
Nihal Agarwal

Posted on

2

How to draw Triangle star pattern with MySQL without using Stored Procedure?

Triangular pattern example The above pattern is for p(5). How to write a query to print the pattern P(n) (where n is Integer defining the number of rows) using MySQL without using Stored Procedure. I had one code example for MS SQL Server i.e.

DECLARE @i INT = 20

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay