PostgreSQLString FunctionsRPAD
LPAD

RPADString Functions

REPEAT

Right-pads a string to a specified length.

Syntax

RPAD(str, n, fill)

Example

Enter values below to update the example in real time.

status
status_col
orders
SELECT RPAD(status, 12, '.') AS status_col
FROM orders;