LPAD和RPAD的用法
SELECT LPAD('A',10,'-') FROM DUAL;
A的左边插入'-'字符,将A补足为10个字符
SELECT RPAD('A',10,'-') FROM DUAL;
A的右边插入'-'字符,将A补足为10个字符
SELECT LPAD('A',10,'-') FROM DUAL;
A的左边插入'-'字符,将A补足为10个字符
SELECT RPAD('A',10,'-') FROM DUAL;
A的右边插入'-'字符,将A补足为10个字符