Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query
optimization, and usability that you won’t want to miss.
Pads the end of a string up to the specified character length.
RPAD (str, len, padding)
String
SELECT RPAD('ohai',10,'_') as o;
+------------+
| o |
+------------+
| ohai______ |
+------------+
SELECT RPAD('123',10,'0') as o;
+------------+
| o |
+------------+
| 1230000000 |
+------------+