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 指的是 字符 长度而不是字节长度。
rpad(str, len, pad)
str
len
pad
MySQL > SELECT rpad("hi", 5, "xy"); +---------------------+ | rpad('hi', 5, 'xy') | +---------------------+ | hixyx | +---------------------+ MySQL > SELECT rpad("hi", 1, "xy"); +---------------------+ | rpad('hi', 1, 'xy') | +---------------------+ | h | +---------------------+