一、拼接函数
1、oracle
select concat(str1, str2) from table; // 只能有两个参数
select str1 || str2 || ... || strn from table; // 任意数量参数
2、mySql
select concat(str1, str2, ..., strn) from table;
二、填充函数
select lpad(column, length, '*') from table; //用“*”将字段“column”左侧填满,使总长度为length。
lpad -> left padding左填充;同理“右填充”为rpad();
'*'可以不写,默认使用空格' '填充