RPAD
REPEAT
REVERSE
Repeats a string n times.
REPEAT(str, n)
Enter values below to update the example in real time.
product_name
rating
stars
reviews
SELECT product_name, REPEAT('★', rating::int) AS stars FROM reviews;