lpad()

Pads the string with the character on the left until it has count characters. Truncates the string on the right if it has more than count characters.

Arguments & returns

lpad(string, count, character)

Scalar
Overload link stringcountcharacter Returns
#01 VARCHARINTEGERVARCHAR VARCHAR

Example

lpad example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.