题解 | #顾客登录名#
顾客登录名
https://www.nowcoder.com/practice/7cbf5e3082954c21a80fc750ce97350f
select
cust_id,
cust_name,
-- 转换成大写
upper(
-- 拼接函数
concat(
-- left(),从左起第2个字符,它有个兄弟 right()
left(cust_name,2),left(cust_city,3)
)
) user_login
from Customers
- 使用相关函数一层套一层即可

查看15道真题和解析