函数
1.常用的字符串函数
select concat('hello','中国');#字符串拼接
select lower('HDNVWK');#将大写字母转成小写
select upper('dqwfwgf');#将小写字母转成大写
select lpad('hello',10,'A');#左填冲AAAAAhello
select rpad('hello',10,'A');#右填冲helloAAAAA
select trim(' fbfigf ');#去掉头部和尾部的空格fbfigf
select substring('watshdh',4,3)#返回从字符串str从start位置起的len个长度的字符串shd
2.常用的数值函数
select ceil(12.6);#13
select ceil(-1.5);#-1
select floor(12.9);#12
select floor(-1.5);#-2
select mod(9,3);#0
select mod(9,2)