Text & patterns
Scalar
lpad()
Pads the string with the character from the left until it has count characters
Reference: DuckDB 1.3.2
Arguments & returns
lpad(string, count, character)
Scalar
| Overload link | string | count | character |
Returns |
|---|---|---|---|---|
| #01 | VARCHAR | INTEGER | VARCHAR |
VARCHAR |
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
lpad('hello', 10, '>');