Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
在字符串左侧填充指定字符使其达到指定长度。
len
str
pad
lpad(str, len, pad)
MySQL > SELECT lpad("hi", 5, "xy"); +---------------------+ | lpad('hi', 5, 'xy') | +---------------------+ | xyxhi | +---------------------+ MySQL > SELECT lpad("hi", 1, "xy"); +---------------------+ | lpad('hi', 1, 'xy') | +---------------------+ | h | +---------------------+