函数

select left('hello',3);
select ltrim(rtrim('  hello  '));--前后都无空格
select substring ('hello',2,4);

原文地址:https://www.cnblogs.com/tingtin/p/9943549.html