题解 | #顾客登录名#
顾客登录名
https://www.nowcoder.com/practice/7cbf5e3082954c21a80fc750ce97350f
--- 使用了concat()字符串连接函数,substr(str,index,offset) 字符串截取函数,upper()字符串大写转换函数
select cust_id ,
cust_name ,
upper(concat(substr(cust_contact,1,2),substr(cust_city,1,3))) user_login
from Customers ;