Rpad
String Function
Description
Extends the
string
to length oflength
parameter by appending the charactersfill
(a space by default). If thestring
is already longer thanlength
then it is truncated.
Click here to navigate to the PostgreSQL docs page for this syntax.
The function Rpad() is supported on Snowflake.
Grammar Syntax
RPAD( string text, length integer [, fill text ] )
Sample Source Patterns
PostgreSQL
SELECT RPAD('12345', 10, 'X');
Snowflake
SELECT RPAD('12345', 10, 'X');
Last updated
Was this helpful?