题解 | #顾客登录名#

顾客登录名

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

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

这是我能想到的,可能不是最简单的,不是最好的

upper()转大写,concat()合并,substr(str,x,y)字符串str x位置开始y个字符长度的字符串

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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