题解 | #顾客登录名#

顾客登录名

https://www.nowcoder.com/practice/7cbf5e3082954c21a80fc750ce97350f

select 
cust_id,cust_name,
upper(concat(left(cust_contact,2),left(cust_city,3))) as user_login
from Customers

知识点:
1、字符串函数 left的使用
2、使用 concat 拼接函数
3、使用upper调整字母大写

易错点,大小写忘记、left 后面分别跟对指定字段

全部评论

相关推荐

03-12 00:30
门头沟学院 Java
点赞 评论 收藏
分享
评论
7
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务