本题要点如下:1.字符串的截取:本题我采用的left函数;2.字符串拼接函数concat;3.小写字母转大写字母UPPER
select cust_id,cust_name,upper(concat(left(cust_contact,2),left(cust_city,3))) user_login from Customers关于字符串的截取,常用的几种方式如下:
1、left(str,length) 从左边截取length
2、right(str,length)从右边截取length
3、substring(str,index)当index>0从左边开始截取直到结束 当index<0从右边开始截取直到结束 当index=0返回空
2、right(str,length)从右边截取length
3、substring(str,index)当index>0从左边开始截取直到结束 当index<0从右边开始截取直到结束 当index=0返回空
4、substring(str,index,len) 截取str,从index开始,截取len长度
原文链接:https://blog.csdn.net/m0_67393828/article/details/123786650
原文链接:https://blog.csdn.net/m0_67393828/article/details/123786650

京公网安备 11010502036488号