Skip to content

Pads a string on the left to a specified length with a fill string.

func.lpad(<str>, <len>, <pad>)
func.lpad('42', 5, '0')
┌─────────┐
'00042'
└─────────┘
LPAD(<str>, <len>, <pad>)
SELECT LPAD('42', 5, '0');
┌───────┐
00042
└───────┘