字符串拼接
-- 字符串拼接
select concat('hello','mysql');
结果展示
字符串转小写
select lower('Hello');
结果展示
字符串转大写
select upper('Hello');
结果展示
字符串左填充
select lpad('01',5,'--');
结果展示
字符串右填充
select rpad('01',5,'2');
结果展示
去空格
select trim(' 0 xct ');
结果展示
字符串截取
select substring('hello world',1,7);
结果展示