scalar
LPAD
Pads on the left or truncates to the requested character length. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
LPAD(text,length,fill)Working Example
Example Snippetsql
SELECT lpad('7',3,'0');