PostgreSQLString FunctionsREPEAT
RPAD

REPEATString Functions

REVERSE

Repeats a string n times.

Syntax

REPEAT(str, n)

Example

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;